Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-229
Example 1
-- decimal 66 = binary 0100 0010
questionableRegister = 66
status.questionable.enable = questionableRegister
Uses a decimal value to set bits B1 and
B6 of the status questionable enable
register.
Example 2
-- decimal 2560 = binary 00001010 0000 0000
questionableRegister = 2560
status.questionable.enable = questionableRegister
Uses a decimal value to set bits B9 and
B11 of the status questionable enable
register.
Also see
(on page C-7)
status.questionable.getmap()
This function requests the mapped set event and mapped clear event status for a bit in the Questionable Event
Registers.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
setEvent
,
clearEvent
= status.questionable.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 (0 to 14)
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.questionable.getmap(9))
Returns the events that were mapped to set
and clear bit 9.
Also see
(on page C-7)
(on page 8-230)