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
Содержание E1445A
Страница 2: ......
Страница 14: ...Notes 12 Agilent E1445A User s Manual Contents...
Страница 18: ...Notes 16 Agilent E1445A Arbitrary Function Generator User s Manual...
Страница 19: ...Notes Agilent E1445A Arbitrary Function Generator User s Manual 17...
Страница 20: ...Notes 18 Agilent E1445A Arbitrary Function Generator User s Manual...
Страница 54: ...Notes 52 Getting Started Chapter 1...
Страница 84: ...Notes 82 Generating Standard Waveforms Chapter 2...
Страница 204: ...Notes 202 Arming and Triggering Chapter 5...
Страница 432: ...Figure 9 1 E1445A Status Groups and Associated Registers 430 AFG Status Chapter 9...
Страница 446: ...Notes 444 AFG Status Chapter 9...
Страница 464: ...Notes 462 Agilent E1445A Specifications Appendix A...
Страница 534: ...Notes 532 Agilent E1445A User s Manual Index...