
178
Communications Command Examples
Example of checking that commands are properly processed
This is an example of checking that commands sent from the controller to the instrument are
properly processed.
Description
Sent to the BT5525 from
the controller
Example of the BT5525
response
(1) Clears the Event Status
Register.
*CLS
–
(2) Set the test voltage to 100 V.
:VOLTage 100
–
(3) Check the test voltage.
:VOLTage?
100
(4) Checking the Standard Event
Status Register
*ESR?
0
(5) Checking the error
:SYSTem:ERRor?
0,"No Error"
(6) Error during an attempt to set
the test voltage to 1000 V
:VOLTage 1000
–
(7) Checking the Standard Event
Status Register
*ESR?
16
(8) Checking the Standard Event
Status Register
(2nd time)
*ESR?
0
(9) Checking the error number
:SYSTem:ERRor?
-220,"Parameter error"
(10) Checking the error number
(2nd time)
:SYSTem:ERRor?
0,"No Error"
You can check for any error in command processing by referring to the EXE bit and CME bit of the
Standard Event Status Register.
(1)
Clear the Event Status Register first.
(2) to (3) This example sets the test voltage and verifies that the query responses are of the set voltage.
(4)
Since the commands are processed properly, the value of the Standard Event Status Register is
also 0.
(5)
The error number is also 0 (No Error).
(6)
Specify a parameter outside the range for the command for setting the test voltage and cause an
error to occur.
(7)
As the parameter is invalid, you can check that bit 4 (EXE) of the Standard Event Status Register is
set and an execution error occurs.
(8)
When the
*ESR?
query is sent, the Standard Event Status Register is cleared.
When the
*ESR?
query is sent again, 0 is returned.
(9)
The error number is −220 (Parameter error).
(10)
When the
:SYSTem:ERRor?
query is sent, the error number is also cleared.
When the
:SYSTem:ERRor?
query is sent again, 0 (No Error) is returned.
HIOKI BT5525A961-00
Содержание BT5525
Страница 2: ...HIOKI BT5525A961 00 ...
Страница 6: ...Contents 6 HIOKI BT5525A961 00 ...
Страница 48: ...48 Notifying the Judgment Result and Test Completion with a Beep HIOKI BT5525A961 00 ...
Страница 76: ...76 Initializing the Instrument Reset HIOKI BT5525A961 00 ...
Страница 82: ...82 Deleting Panel Data HIOKI BT5525A961 00 ...
Страница 200: ...200 License Information HIOKI BT5525A961 00 ...
Страница 215: ...www hioki com HIOKI BT5525A961 00 ...