
88
Keysight M8070A Programming Guide
4
SCPI Command Language
• *OPC?
The *OPC? query returns the ASCII character "1" in the Output Queue
when the No Operation Pending flag is TRUE. At the same time, it also
sets the Message Available (MAV) bit in the Status Byte Register. The
*OPC? will not allow further execution of commands or queries until the
No Operation Pending flag is true, or receipt of a Device Clear (dcas)
message, or a power on.
Data Types
The M8020A/M8030A/M8040A has the capability of receiving and
returning data in the following formats:
STRING
A string of human-readable ASCII characters, either quoted or nonquoted.
NUMERIC
The M8020A/M8030A/M8040A handles the following numeric formats:
• <NR1>: Integer (0, 1, 2, - 1, etc.)
• <NR2>: Number with an embedded decimal point (0.1, 0.001. 3.3, etc.)
• <NR3>: Number with an embedded decimal point and exponent (1e33,
1.3e- 12, etc.)
• <NRf>: Represents <NR1>, <NR2> and <NR3>
• Binary preceded by #b (#B010101, #b011111, etc.)
• Octal preceded by #q (#Q777111, #q7331777, etc.)
• Hex preceded by #h (#haff, #h8989fffff, etc.)
BOOLEAN
Boolean values can be sent to the M8020A/M8030A/M8040A as either
ON | OFF or 0 | 1. The M8020A/M8030A/M8040A answers queries with 0 |
1.
NOTE
The command behaviors described above are for overlapped commands.
When the same commands are used with sequential commands, the
behaviors may be different.