Example
Example
Example
Example
To Reset the Keysight E5260/E5270
The E5260/E5270 returns to the initial settings by the *RST command.
OUTPUT @E5270;"*RST"
For the initial settings, refer to
To Read Query Response
If you enter a query command such as the *TST?, ERR? and so on, the
E5260/E5270 puts an ASCII format response to the query buffer that can store only
one response. Read the response as soon as possible after entering a query
command.
OUTPUT @E5270;"NUB?"
ENTER @E5270;A
This example returns the number of data stored in the data output buffer.
To Perform Self-Test
The E5260/E5270 starts the self-test by the *TST? command. The *TST? command
also returns the test result.
OUTPUT @E5270;"*TST?"
ENTER @E5270;Code
IF Code<>0 THEN DISP "FAIL: SELF-TEST"
This example starts the self-test, and reads the test result code. For the test result
code, refer to
"*TST?" on page
To Perform Self-Calibration
The E5260/E5270 starts the self-calibration by the *CAL? command.
OUTPUT @E5270;"*CAL?"
ENTER @E5270;Result
IF Result<>0 THEN DISP "FAIL: CALIBRATION"
This example starts the self-calibration, and reads the result, pass or fail. For details,
refer to
"*CAL?" on page
Keysight E5260/E5270 Programming Guide, Edition 4
"Initial Settings" on page
4-123.
4-42.
Programming Basics
Getting Started
2-42.
1- 5