User`s manual

BASIC Program Example (SLFTST)
1 !RE-STORE “SLFTST”
10 !Send the self-test command, enter and display the result.
20 DIM Message$[256]
30 OUTPUT 70910;"*TST?"
40 ENTER 70910;Rslt
50 IF Rslt <>0 THEN
60 REPEAT
70 OUTPUT 70910;"SYST:ERR?"
80 ENTER 70910;Code,Message$
90 PRINT Code,Message$
100 UNTIL Code=0
110 END IF
120 PRINT Rslt
130 END
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SLFTST.FRM, is in directory
“VBPROG” and the Visual C/C++ example program, SLFTST.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Resetting and
Clearing the AFG
The commands used to reset and clear the AFG are:
*RST
*CLS
Resetting the AFG sets it to its power-on configuration and clearing the
AFG clears its Status Registers. Status Register programming is covered in
Chapter 9.
BASIC Program Example (RSTCLS)
1 !RE-STORE"RSTCLS"
10 !Assign an I/O path between the computer and AFG.
20 ASSIGN @Afg TO 70910
30 COM @Afg
40 !Call the subprogram
50 CALL Rst_cls
60 END
70 !
80 SUB Rst_cls
90 Rst_cls: !subprogram which resets and clears the AFG.
100 COM @Afg
110 OUTPUT @Afg;"*RST;*CLS;*OPC?" !reset and clear the AFG
120 ENTER @Afg;Complete
130 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, RSTCLS.FRM, is in directory
“VBPROG” and the Visual C/C++ example program, RSTCLS.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 1 Getting Started 47