12-24
Return to
2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library
Series 2600 System SourceMeter® Instruments Reference Manual
Function
Reads the annunciators that are presently turned on.
Usage
annun = display.getannunciators()
annun
Returns the bitmap value for annunciators that are turned on.
Remarks
This function returns a bitmap value that indicates which annunciators are turned on. The
16-bit binary equivalent of the returned value is the bitmap. For example, assume the
returned value is 1028. The binary equivalent for this value is as follows:
0000010000000100
The above bitmap indicates that bits 3 and 11 are set. From the chart below, bit 3 and bit 11
corresponds to the annunciators that are turned on (
4W
and
REM
). Notice that the sum of
the weighted values for bits 3 and 11 is the returned value (1028).
AnnunciatorBitWeighted ValueAnnunciatorBitWeighted Value
FILT1 1 EDIT9256
MATH22 ERR10512
4W3 4 REM111024
AUTO48 TALK122048
ARM5 16 LSTN134096
TRIG6 32 SRQ148192
* (star)764 REAR1516384
SMPL8128REL1632768
Details
See “
” in
.
Example
Reads the annunciators that are turned on:
annun = display.getannunciators()
print(annun)
Output:
1.03
For the returned value of 1280, the binary equivalent is 0000010100000000. Bits 9 and 11
are set. Using the above chart in “
Remarks
”, the
REM
and
EDIT
annunciators are turned
on.
display.getcursor
Function
Reads the present position of the cursor for the user display.
Usage
row, column, style = display.getcursor()
row
Returns the row for the present cursor position.
column
Returns the column for the present cursor position.
style
Returns the cursor style.
Remarks
• This function switches the display to the user screen, and then returns values to indicate
row and column position, and cursor style.
• The
row
value is returned as 1 (top row) or 2 (bottom row).
• With the cursor in the top row, the
column
is returned as a value from 1 to 20. With the
cursor in the bottom row, the
column
is returned as a value from 1 to 32. Columns are
numbered from left to right on the display.
• The returned value for style is 0 (invisible) or 1 (blink).
Details
See “
” in
.
Also see
,
,
Example
Reads cursor position (row and column):
row, column = display.getcursor()
print(row, column)
Output:
1.00 3.00
The above output indicates that the cursor is in Row 1 at Column 3.