Tektronix vx4380 Drums User Manual


 
Appendix C: Examples
VX4380 256-Crosspoint Relay Matrix Module User Manual
C–3
H Define a scan sequence consisting of the relays that join row 1 to columns 1
through 16 in section 3 of the second VX4330. Note that this command
causes all relays in the scan list to be opened.
WRITE scan (@matrix_2(1!1!3:1!16!3))
H Set the trigger source for the defined scan list to “immediate”. This causes
the Option 01 daughter board to generate its own internal triggers. Each time
a trigger is generated, the following sequence of events occurs:
Wait for the trigger delay defined by the TRIGger[:SEQuence]:DELay
command to expire.
Open the relay in the scan list that is currently closed.
Wait for the open dwell time assigned to the module containing the relay
just opened to expire.
Close the next relay in the scan list.
Wait for the close dwell time assigned to the module containing the relay
just closed to expire.
Pulse any enabled VXI TTL triggers low for 3
msec.
In this case, the default trigger delay of 0 is used, the default open dwell time
of 0 is used, and the close dwell time has been set to 0.25 seconds. Note that
the second and third events are skipped when the first trigger is received.
The last three events are skipped when the last trigger is received. Triggers
are not recognized until an INITiate[:IMMediate] or an INITiate:Continuous
command is received.
H Set the number of times to scan through the defined scan list to 2, to begin
when an INITiate[:IMMediat] command is received.
WRITE trigger:sequence:count 2
H Scan through the entire scan list two times.
WRITE initiate
H Set the Operation Complete bit in the Standard Event Status register after the
scan list has been sequenced two times.
WRITE *opc
H Poll the Operation Complete bit in the Standard Event Status register to see
when the scan sequence is finished.
WRITE *esr?
READ <nr1>