IEEE 488.2 Standard Commands

Clear the status byte and associated queues
Syntax | (Command) | *CLS
Details | This command clears the event register associated with each bit of the status byte register. It also clears the status byte register.
Example | *CLS
Note | Because it does not clear the output queue, it has no effect on bit 4 (MAV) of the status byte.
Usage Conditions | -

Query and clear SESR
Syntax | (Query) | *ESR?
(Response) | A<NR1> A = 0 to 255
Details | Reads and clears the contents of the standard event status register (SESR). The contents of the SESR are returned.
Example | *ESR? (Response) *ESR 0 (when headers are enabled)
Note | -
Usage Conditions | -

Query device ID
Syntax | (Query) | *IDN?
(Response) | A$,B$,C$,D$ A$ = Manufacturer's name B$ = Model name C$ = Serial number D$ = Software version
Details | Query device ID.
Example | *IDN? (Response) *IDN HIOKI,LR8450,123456789,V1.10 (when headers are enabled)
Note | -
Usage Conditions | -

Set the LSB of SESR when finished processing
Syntax | (command) | *OPC
Details | *OPC Sets the LSB (bit 0) of SESR (the standard event status register) after all commands finish executing.
Example | A$;*OPC (After the execution of the commands A$ is completed, the LSB of SESR is set.)
Note | The command to wait is as follows: STOP waveform sampling(:STOP) Captures real time data(:MEMory:GETReal) Executes numerical calculation(:CALCulate:MEASure EXEC) Initialize instrument settings(*RST) (If you wait for the measurement stop, you need to send the STOP command twice.)
Usage Conditions | -

Return an ASCII 1 when finished processing
Syntax | (Query) | *OPC?
(Response) | A<NR1> A = 1
Details | When the command preceding the *OPC command completes execution, the response of ASCII [1] is made.
Example | A$;*OPC? (After the execution of the commands A$ is completed, Returns ASCII [1]) (Response) *OPC 1 (when headers are enabled)
Note | The command to wait is as follows: STOP waveform sampling(:STOP) Captures real time data(:MEMory:GETReal) Executes numerical calculation(:CALCulate:MEASure EXEC) Initialize instrument settings(*RST) (If you wait for the measurement stop, you need to send the STOP command twice.)
Usage Conditions | -

Queries device option provision.
Syntax | (Query) | *OPT?
(Response) | A1,A2,A3,...,A11<NR1> Ax = 0 to 14
Details | Queries device option provision.
0 | No Unit
1 | U8550
2 | U8551
3 | U8552
4 | U8553
5 | U8554
6 | LR8530
7 | LR8531
8 | LR8532
9 | LR8533
10 | LR8534
11 | U8555
12 | LR8535
13 | U8556
14 | LR8536
Example | *OPT? (Response) *OPT 1,2,3,4,5,6,7,8,9,10,0 (when headers are enabled)
Note | -
Usage Conditions | -

Device initial setting.
Syntax | (Command) | *RST
Details | Initializes the system.
Example | *RST
Note | Interface settings and unit setting are not initialized. （the event registers, the enable registers, the input buffer and the output queue） Initialization takes a little time.
Usage Conditions | -

Reads the status byte and MSS bit.
Syntax | (Query) | *STB?
(Response) | A<NR1> A = 0 to 255
Details | This is the same as reading out the status byte.
Example | *STB? (Response) *STB? 128 (when headers are enabled)
Note | -
Usage Conditions | -

Queries the result of the ROM/RAM check.
Syntax | (Query) | *TST?
(Response) | A<NR1> A = 0, 1
Details | The result of the ROM/RAM check of the unit is returned as an NR1 numerical value.
0 | Pass
1 | Fail
Example | *TST? (Response) *TST 0 (when headers are enabled)
Note | -
Usage Conditions | -

Execute the following command when finished processing
Syntax | (Command) | *WAI
Details | After the execution of the command is completed, subsequently performs the following command.
Example | A$;*WAI;*IDN?
Note | The command to wait is as follows: STOP waveform sampling(:STOP) Captures real time data(:MEMory:GETReal) Executes numerical calculation(:CALCulate:MEASure EXEC) Initialize instrument settings(*RST) (If you wait for the measurement stop, you need to send the STOP command twice.)
Usage Conditions | -

Reads and clear event status register 0 (ESR0).
Syntax | (Query) | :ESR0?
(Response) | A<NR1> A = 0 to 255
Details | The contents of ESR0 are returned as an NR1 numerical value, and ESR0 is cleared.
Example | :ESR0? (Response) :ESR0 0 (when headers are enabled)
Note | -
Usage Conditions | -