There are several possible options to run the Template:
- Monitor mode
- Port selection
- Port configuration
- Multiple drivers
- Timeout Delay
They are described as follows:
If you want the template to operate in monitor mode you simply add a /M to the command line. If the template is in monitor mode it will not detach from the console. It will retain the console and print out the responses to its commands coming back from the device. The first time you run the template, monitor mode should be used to see if there are any errors in the file.
An example of using this feature to run the template would be:
DRIVER TEST.TXT /M
If the monitor mode is not specified, the driver will be running in detach mode
The template normally runs on COMM2. To execute the template using COMM1, you would use the /C1 option. A possible command line would be:
DRIVER TEST.TXT /C1
To use a DEC terminal server port, the option /L must be specified. For example, the following command designates LAT2 as the service to be used for the driver.
DRIVER TEST.TXT /L2
If you are not using any communications port, the option /N must be specified at the command line. For example,
DRIVER TEST.TXT /N /M
To change communications port settings for COMM1 or COMM2, use the /S option. A possible command line would be:
DRIVER TEST.TXT /S96,N,8,1
96 = 9600 baud
N = none parity
8 = 8 data bits
1 = 1 stop bit
If more than one driver is to run at the same time, the /D option with the number of the driver ( i.e. /Dn ) must be used and the last driver should use /DnX option. You must ensure that all the drivers to run in the same computer do support this option. The /D option need be specified only when more than one driver will be running. For example:
DRIVER TEST.TXT /Dn1
where n specifies the number of the driver.
Notice that the ONSPEC watchdogs for the drivers are DII for D1, and DII for D2, etc.
The Timeout Delay factor allows you to change the time that the driver will wait for the device to respond to a command. In this case, the /W option is used. For instance, by adding /W100 at the command tail will cause the template to wait 100 ticks for incoming data before timing out and attempting a retry. The default is 120 ticks.
A complete command line may look like the following:
DRIVER TEST.TXT /M /C1 /S96,N,8,1 /D2 /W100