STISIM Drive (SDL) - AO - Analog Output

Sends a discrete analog output to some external piece of equipment. The AO, CAO, DO, and TDO events are the only way you can control external equipment during a simulation run. The AO event allows you to output voltages on one of 6 separate output channels. The allowed voltages are specified using the DIP switches on the output board and with the CB.CFG file that is created using the ComputerBoards InsCal32 program. Refer to the Additional I/O hardware section for further details about the output cards that are supported. Systems equipped with an active steering system have a digital to analog (D/A) card in them, however, an additional card is needed in order to use the AO event. The first D/A card is used to control the steering system, speedometer and tachometer (speedometer and tachometer are optional), and then the second card is used for AO event. If you have a system that does not use the active steering system, then you would install a single D/A card and use that.

This event is used if you want to send a specific voltage at a specific point in the scenario for example to turn on a recorder or set a gauge. If you want to send specific simulation variables out to an external computer, you should use the CAO event. Since you can use both the AO and CAO in the same scenario, the CAO event takes precedence over the AO event.

EVENT PARAMETERS:

PARAMETER 1:

Analog channel where the voltage will be output from the computer. For the board supported, there are 6 possible channels and their values are  0 to 5. Refer to the output board's pin diagram for determining the output pins and their grounds.

PARAMETER 2:

Voltage that will be output on the specified channel. Possible values can vary from channel to channel and you can specify the voltage range using the DIP switches for the particular channel and configuring the board using the ComputerBoard's InsCal32 program.

PARAMETER 3:

Duration flag. Possible values are:

0 - Time
1 - Distance

PARAMETER 4:

Duration that the voltage will be output. When this duration has been exceeded, the voltage on the specified channel will be reset to 0.

PARAMETER 5:

Flag specifying if initial values should be displayed when the board is initialized or when the simulation run begins. This flag only effects the system when the starting distance of the AO event is 0, otherwise it will have no effect on the AO event. The flag values are:

0 - Wait until the start of the run to output analog signal
1 - Outputs the analog signal when the board initializes

EXAMPLE:

0,AO,1,3.5,1,1000,1
1000,AO,3,2.5,0,10

The first example shows an analog event at the start of a simulation run (0,AO). The voltage will be applied to channel 1 and its value will be 3.5 volts (1,3.5). The duration that the voltage will be on is 1000 feet (1,1000). Finally, because this event occurs at the beginning of the simulation run (0 feet), you can specify if the voltage will be output when the board is initialized or when the simulation run begins. Because the parameter value in this example is 1, the program will output the voltage as soon as the board is initialized. Therefore the voltages will already be active before the driver starts the simulation run.

Using the second example shown above, when the driver has traveled 1000 feet down the road, 2.5 volts will be applied to channel 3 for a duration of 10 seconds. After the voltage has been applied on channel 3 for 10 seconds, channel 3 will be reset to 0 volts.