Details
This function is applicable to digital I/O, totalizer, and DAC channels only.
The values for state are:
• channel.IND_MATCH or 4
• channel.IND_OVERFLOW or 8
• channel.IND_OVERLOAD or 2
Multiple states can be set by performing a logical OR operation on the values.
For channelList, use channel.ALL to reset all states.
States can be latched or unlatched, depending on other system settings. Latched states indicate that
the condition occurred since the last reset (or power cycle). Unlatched states indicate that the
condition has occurred when the channel.getstate() command was issued. The Overflow and
Overload states default to latched.
If states are not cleared using channel.resetstatelatch(), you may not be reading the present
state of the channel.
If the state is reset but the condition that caused the channel state to latch still exists, the state is
reset, but a second event is generated through the channel trigger model.
Example
Clears out a match indicator that was
latched on digital I/O channel 1 of slot 1,
assuming a Model 3750.
Also see
channel.getstate() (on page 11-72)
channel.getstatelatch() (on page 11-74)
channel.setstatelatch() (on page 11-100)