
Agilent B1500A/B1505A Programming Guide, Edition 11 1-9
Programming Basics
Getting Started
To Perform Diagnostics
The B1500 starts the diagnostics by the DIAG? command, and returns the result.
You must specify the diagnostics item by the command parameter. Available
parameter values are:
1: Trigger In/Out diagnostics
3: High voltage LED diagnostics
4: Digital I/O 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.
Example OUTPUT @B1500;"DIAG? 1"
ENTER @B1500;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, see “DIAG?” on page 4-73.
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 B1500 closes the output
switch of the specified channels.
Example OUTPUT @B1500;"CN 1"
This example enables channel 1 (the module installed in slot 1 of the B1500). If you
do not specify the channel, the CN command enables all channels.
To Select the Measurement Mode
The B1500 provides the measurement modes listed in Table 1-1. To select the
measurement mode, send the MM command. In the table, the Mode No. means a
command parameter of the MM command.
Syntax MM Mode#[,Ch#[,Ch#] ... ]
where, Mode# specifies the Mode No., and Ch# specifies the measurement channel.
The available number of measurement channels depends on the measurement mode.
For details, see “MM” on page 4-136.
Comentarios a estos manuales