Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-157
status.operation.setmap()
This attribute maps events to bits in the Operation Event Register.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
status.operation.setmap(
bitNumber
,
setEvent
)
status.operation.setmap(
bitNumber
,
setEvent
,
clearEvent
)
bitNumber
The bit number that is being mapped to an event
setEvent
The event of the event that sets the bits in the condition and event registers (
−
440 to
5800)
clearEvent
The event of the event that clears the bit in the condition register (
−
440 to 5800)
Details
You can map events to bits in the event registers with this command. This allows you to cause bits in the
condition and event registers to be set or cleared when the specified events occur.
When a mapped event is programmed to set bits, the corresponding bits in both the condition register and event
register are set when the event is detected.
When a mapped event is programmed to clear bits, the bit in the condition register is set to 0 when the event is
detected.
If the event is set to zero (0), the bit is never set.
Example
status.operation.setmap(0, 5000, 5020)
When event 5000 occurs, bit 0 in the
condition and event registers of the
Operation Event Register are set. When
event 5020 occurs, bit 0 in the condition
register is cleared.
Also see
(on page C-8)
Programmable status register sets
(on page C-5)
(on page 8-156)