Querying The Power-On/Reset Configuration; Basic Program Example (Lrn) - Agilent Technologies E1445A User's Manual And Scpi Programming Manual

Arbitrary function generator module scpi programming guide
Hide thumbs Also See for E1445A:
Table of Contents

Advertisement

Querying the
Power-On/Reset
Configuration

BASIC Program Example (LRN)

1
10
20
30
40
50
60
70
80 Lrn_conf: !subprogram which queries the AFG configuration
90
100
110
120
130
140
150
160
170
180
Visual BASIC and
Visual C/C++ Program
Versions
48
Getting Started
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?
!RE-STORE "LRN"
!Assign an I/O path between the computer and AFG.
ASSIGN @Afg to 70910
!Call the subprogram
Lrn_conf(@Afg)
END
!
SUB Lrn_conf(@Afg)
DIM Lrn$[5000]
OUTPUT @Afg;"*LRN?"
ENTER @Afg;Lrn$
Lrn$=Lrn$&";"
REPEAT
I=POS(Lrn$,";")
PRINT Lrn$[1;I-1]
Lrn$=Lrn$[I+1]
UNTIL Lrn$=""
SUBEND
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.
Chapter 1

Advertisement

Table of Contents
loading

Table of Contents