Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-103
channel.trigger[N].set()
This function sets the channel status trigger model to watch the state of a specific channel.
Instrument reset
Channel reset
Recall setup
Create configuration script
Save setup
Empty channel list
State match 0
Usage
channel.trigger[N].set("channelList", stateMatch)
Number indicating the channel trigger to set (1 to 8)
The channels to set, using standard channel naming
Value specifying the status to match when triggering an event
Details
If the channel list contains more than one channel, the trigger acts as a logical OR. When any one of
the channels in the list matches the specified state, a trigger event is generated. Therefore, if an
indicator is present in both the match and the actual state, an event is triggered. If the match contains
more than one state indicator, only one of those indicators needs to be present to trigger the event.
There are a total of eight channel trigger events for each Series 3700A, defined by N. Using this
mechanism, a trigger can be generated when a pattern is matched on an I/O, a totalizer matches a
defined count, or an I/O has an overcurrent condition.
Latching functionality is not supported.
This command works for DAC, digital I/O and totalizer channels. Switch channels are not supported.
To clear a trigger that is no longer needed, pass an empty channel list ("" or " ") .
Example 1
channel.trigger[1].set("1001", channel.IND_MATCH)
Assuming a 3750, defines a channel trigger event 1 to occur when digital I/O channel 1 matches its defined
match value.
channel.trigger[5].set("6003, 6005", channel.IND_MATCH)
print(channel.trigger[5].get())
channel.trigger[5].set(" ", channel.IND_MATCH)
print(channel.trigger[5].get())
Assuming a 3750 card, define channel trigger event 5 to occur when either digital I/O channel 3 or 5 on slot 6
match their defined values.
View the trigger information associated with channel trigger 5.
Clear the trigger information associated with channel trigger 5.
View the trigger information associated with channel trigger 5.
Output:
6003,6005 4.000000000e+000 0.000000000e+000
Also see
channel.trigger[N].get() (on page 11-102)