Aborting Waveforms - HP E1340A User Manual

Arbitrary function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

C and QuickBASIC
Programs

Aborting Waveforms

Chapter 5
100
OUTPUT @Afg;"*ESE 60"
110
!
120
!Call the subprogram which resets the AFG.
130
CALL Rst
140
!
150
!Set AFG parameters
160
OUTPUT @Afg;"SOUR:FREQ:FIX 10E3;";!frequency
170
OUTPUT @Afg;":SOUR:FUNC:SHAP TRI;"; !function
180
OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5V" !amplitude
190
OUTPUT @Afg;"SOUR:ROSC:GATE:STAT ON"!enable gating
200
OUTPUT @Afg;"INIT:IMM"
210
!
220
WAIT .1
230
OFF INTR 8
240
END
250
!
260
SUB Rst
330
SUB Errmsg
The C program GATE_SIG.C is in directory " CPROG" , and the
QuickBASIC program GATE_SIG.BAS is in directory " QBPROG" on the
example program disk HP P/N E1340-10036.
Aborting a waveform places the AFG in the Idle state. The waveform is
halted and the output remains at the last amplitude point when the abort was
executed. The command which aborts a waveform is:
ABORt
HP E1340A Arming and Marker Outputs
!wait-for-arm state
!allow interrupt to be serviced
102

Advertisement

Table of Contents
loading

Table of Contents