![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750626.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-313
As an example, to set bit B0 of the standard event status enable register, set
status.standard.enable =
status.standard.OPC
.
In addition to the above constants,
standardRegister
can be set to the numeric equivalent of the bit to set. To
set more than one bit of the register, set
standardRegister
to the sum of their decimal weights. For example,
to set bits B0 and B4, set
standardRegister
to 17 (which is the sum of 1 + 16).
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 1
standardRegister = status.standard.OPC
+ status.standard.EXE
status.standard.enable = standardRegister
Uses constants to set the OPC and EXE
bits of the standard event status enable
register.
Example 2
-- decimal 17 = binary 0001 0001
standardRegister = 17
status.standard.enable = standardRegister
Uses a decimal value to set the OPC and
EXE bits of the standard event status
enable register.
Also see
status.system.*
These attributes manage the TSP-Link
®
system summary register of the status model for nodes 1 through 14.
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
32,767 (All bits set)
Usage
enableRegister
= status.system.condition
enableRegister
= status.system.enable
enableRegister
= status.system.event
enableRegister
= status.system.ntr
enableRegister
= status.system.ptr
status.system.enable =
enableRegister
status.system.ntr =
enableRegister
status.system.ptr =
enableRegister
enableRegister
The status of the system summary register; a zero (0) indicates no bits set; other
values indicate various bit settings
Содержание 2657A
Страница 3: ......