Basic Program Example (Slftst); Resetting And Clearing The Afg; Basic Program Example (Rstcls) - 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

BASIC Program Example (SLFTST)

1
10
20
30
40
50
60
70
80
90
100
110
120
130
Visual BASIC and
Visual C/C++ Program
Versions
Resetting and
Clearing the AFG

BASIC Program Example (RSTCLS)

1
10
20
30
40
50
60
70
80
90 Rst_cls: !subprogram which resets and clears the AFG.
100
110
120
130
Visual BASIC and
Visual C/C++ Program
Versions
Chapter 1
!RE-STORE "SLFTST"
!Send the self-test command, enter and display the result.
DIM Message$[256]
OUTPUT 70910;"*TST?"
ENTER 70910;Rslt
IF Rslt <>0 THEN
REPEAT
OUTPUT 70910;"SYST:ERR?"
ENTER 70910;Code,Message$
PRINT Code,Message$
UNTIL Code=0
END IF
PRINT Rslt
END
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.
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.
!RE-STORE"RSTCLS"
!Assign an I/O path between the computer and AFG.
ASSIGN @Afg TO 70910
COM @Afg
!Call the subprogram
CALL Rst_cls
END
!
SUB Rst_cls
COM @Afg
OUTPUT @Afg;"*RST;*CLS;*OPC?"
ENTER @Afg;Complete
SUBEND
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.
!reset and clear the AFG
Getting Started
47

Advertisement

Table of Contents
loading

Table of Contents