1- 6 Keysight E5260/E5270 Programming Guide, Edition 4
Programming Basics
Getting Started
To Perform Diagnostics
The E5260/E5270 starts the diagnostics by the DIAG? command, and returns the
result. You must specify the diagnostics item by using the first parameter. Available
parameter values are:
1: Trigger In/Out diagnostics
2: Front panel key diagnostics
3: High voltage LED diagnostics
4: Digital I/O diagnostics
5: Beeper diagnostics
To perform diagnostics 1, connect a BNC cable between the Ext Trig In terminal
and the Ext Trig Out terminal before starting the diagnostics.
To perform diagnostics 4, disconnect any cable from the digital I/O port.
For diagnostics 1 and 4, the second parameter is available. Available parameter
values are:
0: E5260/E5270 starts diagnostics immediately.
1: E5260/E5270 starts diagnostics when the
Enter
key is pressed.
Example OUTPUT @E5270;"DIAG? 1,0"
ENTER @E5270;Result
IF Result<>0 THEN DISP "FAIL: DIAGNOSTICS"
This example starts the Trigger In/Out diagnostics, and reads the result, pass or fail.
For details, refer to
“DIAG?” on page 4-49.
To Enable Source/Measurement Channels
The measurement channels or source channels can be enabled by closing the output
switch. To close the switch, send the CN command. The E5260/E5270 closes the
output switch of the specified channels.
Example OUTPUT @E5270;"CN 1"
This example enables channel 1 (the module installed in slot 1 of the E5260/E5270).
If you do not specify the channel, the CN command enables all channels.