2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-183
status.operation.getmap()
This function requests the mapped set event and mapped clear event status for a bit in the Operation Event
Registers.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
setEvent
,
clearEvent
= status.operation.getmap(
bitNumber
)
setEvent
The event mapped to set this bit;
0
if no mapping
clearEvent
The event mapped to clear this bit;
0
if no mapping
bitNumber
The bit number to check
Details
When you query the mapping for a specific bit, the instrument returns the events that were mapped to
set and clear that bit. Zero (
0
) indicates that the bits have not been set.
Example
print(status.operation.getmap(0))
Query bit 0 of the Operation Event Register.
Example output:
4918 4917
Also see
(on page B-7)
Programmable status register sets
(on page 14-183)
status.operation.setmap()
This function allows you to map 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 mapped to an event (
0
to
14
)
setEvent
The number of the event that sets the bits in the condition and event registers; 0 if no
mapping
clearEvent
The number of the event that clears the bit in the condition register; 0 if no mapping