Instruction manual

6 Input and Output 97
Figure 6-21: Output States
Sequences Digital states can be grouped together in Sequences. A Sequence allows timed execution of
digital states.
Creating Sequences To create a Sequence, type the name of the sequence in the Edit box next to the Current
Sequence Label and click New.
Editing a Sequence Select the sequence to be edited in the Current Sequence drop-down box. To add a digital
state to the sequence, select the digital state from the list on the left side of the window and
click Add State to Sequence. To remove a state from the sequence, select the state in the
sequence and click Remove State from Sequence. To have the WPI device wait for a specified
period of time between different digital states, type a time (in seconds) in the Edit box next to
the Wait button and click Wait to insert the waiting period into the sequence.
The timing for the digital inputs is handled by the computer and since Windows
is not a real-
time operating system, there is an inherent lag in the processing of events. The digital output
timing should be within one second. To set more than one state at the same time, add all the
states you want to set simultaneously to the sequence before setting Wait or Update (under
General). The DataTrax2 program will “OR” all the states and execute them when it reaches the
Wait statement, the Update statement or the end of the sequence. To repeat the sequence, set
the repeat count. The order of the states in the sequence can be changed by using the up and
the down buttons.