Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual
11-74 3700AS-901-01 Rev. D/June 2018
channel.getstatelatch()
This function gets the mask representing the states that would be latched if they occurred.
Instrument reset
Channel reset
Recall setup
Create configuration script
Save setup
14 for overload, match, and
overflow
Usage
state = channel.getstatelatch("channelList")
Return string listing the comma-delimited latch states for channels in
channelList:
â–ª 2: Channel overload
â–ª 4: Channel match
â–ª 8: Channel overflow
String specifying the channels to query, using normal channel list syntax
Details
Applicable to digital I/O, totalizer, and DAC channels only.
Each indicator is represented by a bit in the mask.
Example 1
myState = channel.getstatelatch("1001")
print(myState)
Queries the state event latch on digital I/O
channel 1 in slot 1 assuming a Model 3750.
channel.setstatelatch("6010", bit.bitor(channel.IND_OVERFLOW,
channel.IND_OVERLOAD))
print(channel.getstatelatch("6010"))
Generate either an overflow or overload event on DAC channel 10 in slot 6, assuming a Model 3750.
Query for the state latch for channel 10 on slot 6.
Output:
10
Also see
channel.setstatelatch() (on page 11-100)