User`s manual
Querying the
Power-On/Reset
Configuration
After resetting the Agilent E1445A or cycling power, the AFG parameters
are set to their power-on values. These values are listed in Table B-5 in
Appendix B.
The command which queries each AFG parameter setting is:
*LRN?
BASIC Program Example (LRN)
1 !RE-STORE “LRN”
10 !Assign an I/O path between the computer and AFG.
20 ASSIGN @Afg to 70910
30 !Call the subprogram
40 Lrn_conf(@Afg)
50 END
60 !
70 SUB Lrn_conf(@Afg)
80 Lrn_conf: !subprogram which queries the AFG configuration
90 DIM Lrn$[5000]
100 OUTPUT @Afg;"*LRN?"
110 ENTER @Afg;Lrn$
120 Lrn$=Lrn$&";"
130 REPEAT
140 I=POS(Lrn$,";")
150 PRINT Lrn$[1;I-1]
160 Lrn$=Lrn$[I+1]
170 UNTIL Lrn$=""
180 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, LRN.FRM, is in directory
“VBPROG” and the Visual C/C++ example program, LRN.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
48 Getting Started Chapter 1