Multiple Secure Viewers on one Thin Client installation

                                      Multiple Secure Viewers/Monitors on single IWS machine

This is the process for launching multiple secure viewers on a machine that has an Indusoft Web Studio product installation and an Indusoft Secure Viewer product installation, and which has multiple monitors configured in Windows Extended Desktop.

This note assumes that the multiple monitors are of the same size. You will first configure the monitors in Windows Extended Desktop, such that they all have the same height, but the upper left corner of the first monitor is at (0,0), and thereafter, each succeeding monitor starts at a multiple of the X axis parameter of your application resolution (ie (1024,0),(2048,0), etc).. The application resolution defines the default resolution of your project screens. For this example, assume that this resolution is 1024 x 768. In this example, all secure viewers will be started in sequence when the application is started.

In the Scheduler configure a Change Event, such that the Trigger column contains the name of an integer tag called NumSecVwr. The Expression field will have the WinExec function, similar to the following:

WinExec(“C:\ProgramFiles\Indusoft Thin Client vX.x\Viewer.exe”) [for IWS  v7.x,8.x] or WinExec(“C:\ProgramFiles\Indusoft Secure Viewer vX.x\Viewer.exe”) [for IWS v6.x]

In the On_Start portion of the Graphics Script, enter the following, using a fixed value for SecVwrMax, equal to the number of monitors connected to the thin client machine (and configured in the Extended Desktop configuration on that machine).

If $NumSecVwr

   $SetViewerPos($NumSecVwr x 1024,0,1024,768)

   $NumSecVwr = $NumSecVwr + 1

End If

What happens at startup is that the local viewer process (Viewer.exe) will begin executing from the /Bin subfolder of the Indusoft Web Studio product installation folder, displayed on the main monitor assigned to (0,0). That local Viewer’s Graphics Script will start the Viewer.exe process from the root of the Secure Viewer product installation folder as the first Secure Viewer thin client, and increment the NumSecVwrr tag to 1. While displaying on the monitor assigned to (1024,0), the first Secure Viewer thin client’s graphics script will then launch another instance of the Viewer.exe process from the root of the Secure Viewer product installation folder, as the second Secure Viewer thin client, and increment the NumSecVwr tag to 2 . On the second Secure Viewer thin client, displayed on the monitor assigned to (2048,0), the Graphics Script will launch the third Secure Viewer thin client, and so on, until the NumSecVwr tag value is equal to the value of SecVwrMax. At this point, all of the Secure Viewers are launched, and each one is displayed on a different monitor.