Download Agilent Technologies 54645A Programming instructions

Transcript
Programmer’s Quick Reference
Commands and Queries
Command
Query
Options and Query Returns
*SRE
<mask>
*SRE?
<mask> ::= sum of all bits that are set, 0 to 255; an integer in NR1
format. <mask> ::= following values:
Bit
Weight
Enables
7
128
OPER - Operation Status Register
6
64
Not Used
5
32
ESB - Event Status Bit
4
16
MAV - Message Available
3
8
Not used
2
4
MSG - Message
1
2
USR - User
0
1
TRG - Trigger
n/a
:STATus?
<display>
{ON | OFF}
<display> ::= {ANALog1 | ANALog2 |
DIGital0,...,DIGital15 | PMEMory1 | PMEMory2}
n/a
*STB?
<value> ::= 0 to 255; an integer in NR1 format, as shown in the
following:
Bit
7
Weight
128
Name
OPER
6
64
RQS/MS
5
32
ESB
4
16
MAV
3
2
8
4
---MSG
1
2
USR
0
1
TRG
Condition
0 = no enabled operations status
conditions occurred
1 = an enabled operation status
condition occurred
0 = instrument has no reason for
service
1= instrument is requesting
service
0 = no event status conditions
occurred
1 = enabled event status condition
occurred
0 = no output messages are ready
1 = an output message is ready
0 = not used
0 = no message has been
displayed
1 = message has been displayed
0 = no enabled user event
conditions have occurred
1 = an enabled user event
condition has occurred
0 = no trigger has occurred
1 = a trigger occurred
:STOP
n/a
n/a
:SYSTem:DSP
<string>
n/a
<string> ::= quoted ASCII string
n/a
:SYSTem:ERRor?
<error> ::= an integer error code
<error string> ::= quoted ASCII string
See error values in the online Programmer’s Reference.
:SYSTem:KEY
<key_code>
:SYSTem:KEY?
<key_code> ::= -1 to 50; an integer
See key code values in the online Programmer’s Reference.
8-11