User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-82 3700S-901-01 Rev. C / July 2008
channel.setstatelatch()
Remarks
Each indicator is represented by a bit in the mask.
For non-latching applications, the state indicator clears automatically when the causing
condition clears itself. For latching applications, the condition is cleared using the
channel.resetstate() command.
When using the trigger module, events are always non-latching (or pulse oriented).
However, in latching mode, the event is only generated once at the beginning. In non-
latching mode, the event is generated anytime the condition begins.
Set multiple states by ORing the values together.
Also see
channel.getstate() (on page 13-56)
channel.getstatelatch() (on page 13-58)
Example
To generate a match state event on digital I/O Channel 1:
channel.setstatelatch("1001", channel.IND_MATCH)
channel.trigger[N].clear()
Function
Clears any pending events.
Usage
channel.trigger[N].clear()
Also see
channel.trigger[N].set() (on page 13-82)
Example
To clear any pending events on channel trigger 1:
channel.trigger[1].clear()
channel.trigger[N].EVENT_ID
Function
Defined constant that indicates the event ID in the event system.
Usage
channel.trigger[N].EVENT_ID
Also see
channel.trigger[N].set() (on page 13-82)
Example
To use a channel trigger event to start a scan:
scan.trigger.chan.stimulus = channel.trigger[1].EVENT_ID
channel.trigger[N].get()
Function
Gets trigger information associated with a given trigger.
Usage
<ch_list>, <state_match> = channel.trigger[<n>].get()
ch_list: Return string specifying the channels watched by this trigger.
state_match: Return value specifying the state to match when triggering an event.
Also see
channel.trigger[N].set() (on page 13-82)
Example
chan_list, state_match = channel.trigger[1].get()
print(chan_list, state_match)