HP E1340A User Manual page 64

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

Advertisement

Chapter 3
4. The voltage data values are sent next using the array
IOOUTPUTA(ADDR&, SEG WaveSeg!(1), NumSize%)
in
are in a floating point format.
WaveSeg!
automatically separates each value in the arrays by a comma ( , ).
5. After all the data is sent, the data transfer terminates with a CR and
LF. This lets the AFG know that it can receive a new command.
SUB SendData (Commands$, WaveSeg!(), NumSize%)
Endline$ = CHR$(13) + CHR$(10)
' First disable EOI and EOL; then send the last command
CALL IOEOI(ISC&, 0)
CALL IOEOL(ISC&, " ", 0)
CALL IOOUTPUTS(ADDR&, Commands$, LEN(Commands$))
' Re-enable EOL and EOI for normal HP-IB operation; then send the data
CALL IOEOI(ISC&, 1)
CALL IOEOL(ISC&, Endline$, LEN(Endline$))
CALL IOOUTPUTA(ADDR&, SEG WaveSeg!(1), NumSize%)
END SUB
Generating Arbitrary Waveforms with the HP E1340A
WaveSeg!()
in
. The values
IOOUTPUTS
64

Advertisement

Table of Contents
loading

Table of Contents