![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750578.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-265
In addition to the above constants,
nodeEventRegister
can be set to the decimal equivalent of the bits set.
When more than one bit of the register is set,
nodeEventRegister
contains the sum of their decimal weights.
For example, if 129 is returned, bits B0 and B7 are set (1 + 128).
Bit
B7 B6 B5 B4 B3 B2 B1 B0
Binary
value
0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1
Decimal
128 64 32 16 8 4 2 1
Weights
(2
7
) (2
6
) (2
5
) (2
4
) (2
3
) (2
2
) (2
1
) (2
0
)
Example
nodeEventRegister = status.node_event
print(nodeEventRegister)
Reads the status node event register.
Sample output:
1.02
Converting this output (129) to its binary
equivalent yields 1000 0001
Therefore, this output indicates that the set bits
of the status byte condition register are presently
B0 (MSB) and B7 (OSB).
Also see
Status byte and service request (SRQ)
(on page 7-313)
status.operation.*
These attributes manage the operation status register set of the status model.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute
- -
- -
- -
- -
.condition (R)
Yes
Not applicable
Not saved
Not applicable
.enable (RW)
Yes
Status reset
Not saved
0
.event (R)
Yes
Status reset
Not saved
0
.ntr (RW)
Yes
Status reset
Not saved
0
.ptr (RW)
Yes
Status reset
Not saved
Usage
operationRegister
= status.operation.condition
operationRegister
= status.operation.enable
operationRegister
= status.operation.event
operationRegister
= status.operation.ntr
operationRegister
= status.operation.ptr
status.operation.enable = o
perationRegister
status.operation.ntr = o
perationRegister
status.operation.ptr = o
perationRegister
operationRegister
The status of the operation status register; a zero (0) indicates no bits set (also send
0 to clear all bits); other values indicate various bit settings
Содержание 2657A
Страница 3: ......