2470 High Voltage SourceMeter Instrument Reference Manual
Section 8: Triggering
2470-901-01 Rev. A /
May
2019
8-55
Using the TRIGGER key to generate an event
You can use the front-panel TRIGGER key to generate a trigger event.
For example, if you set a wait block to advance when the TRIGGER key is pressed, the trigger model
will reach the wait block. If the TRIGGER key has already been pressed, the trigger model execution
will continue. If the TRIGGER key has not been pressed, the trigger model execution is halted until
the TRIGGER key is pressed.
To set a trigger block to respond to the front-panel key press:
•
From the front panel: Set the event to be Display TRIGGER Key
•
Using SCPI: Set the event to
DISPlay
•
Using TSP: Set the event to
trigger.EVENT_DISPLAY
There are no action overruns for front-panel TRIGGER key events.
Using the notify block event
When trigger model execution reaches a notify block, the instrument generates a trigger event and
immediately continues to the next block.
Other commands can reference the event that the notify block generates. This assigns a stimulus
somewhere else in the system. For example, you can use the notify event as the stimulus of a
hardware trigger line, such as a digital I/O line.
When the trigger model executes a notify block, the instrument generates the SCPI event
NOTify<n>
or TSP event
trigger.EVENT_NOTIFY
N
. You can assign this event to a command that
takes an event.
For example, if you want a Notify block to trigger a digital I/O line, insert a Notify block into the trigger
model, assign it a notify event and then connect it to the stimulus of the digital I/O line to drive. In the
following example, you define trigger model block 5 to be the notify 2 event. You can then assign the
notify 2 event to be the stimulus for digital output line 3. To do this, send the following commands in
SCPI:
:TRIG:BLOC:NOT 5, 2
:TRIG:DIG3:OUT:STIMulus NOTify2
In TSP, send the commands:
trigger.model.setblock(5, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY2)
trigger.digout[3].stimulus = trigger.EVENT_NOTIFY2