HP E1340A User Manual page 118

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

Advertisement

Transferring Data in
QuickBASIC
Chapter 6
To transfer Definite Length Block Data to the AFG requires that the data
sent with the
[SOURce:]LIST[:SEGMent]:VOLTage:DAC
contiguous. To do this, send no carriage return (
before transferring all the data. The
(refer to the QuickBASIC routine below):
1. Disable EOI and EOL using
respectively.
ISC&
(NULL) values disables the carriage return (CR) and line feed (LF)
to allow the AFG to receive a command string without a terminator.
2. Next, sent to the AFG the SCPI
[SOURce:]LIST[1][:SEGment]:VOLTage:DAC
IOOUTPUTS(ADDR&, Commands$, LEN(Commands$)
contains the AFG HP-IB address,
command string, and
. This enables the AFG to receive voltage data. Since
Commands$
CR or LF is disabled, the AFG holds execution until all the data is
sent.
3. Enable EOI and EOL using
Endline$, LEN(Endline$))
contains the decimal codes for CR and LF. Although EOL and EOI
are enabled, no CR and LF is sent until all voltage data transfer is
completed (next step).
4. The DAC data values are sent next using the array
IOOUTPUTAB(ADDR&, SEG WaveSeg%(1), NumSize%,
.
SwapSize%)
WaveSeg%
contains the value for the number of bytes to be
NumSize%
transferred, and
SwapSize%
(see " Swapping the Data Bytes" on the following page).
's main purpose is to transfer data as Definite Length
IOOUTPUTAB
Arbitrary Block Data. It automatically determines the
" <non-zero digit>" and " <digits>" and sends the complete
" #<non-zero digit><digits><8-bit data bytes>" block to the AFG.
Since the DAC codes are in a 16-bit integer format, the programs
send 2 " <8-bit data bytes>" for each DAC code; all values are sent
in one data block. The number of data bytes transferred depends on
the number in
NumSize%
CR
routine does this as follows
SendData
IOEOI (ISC&, 0)
contains the HP-IB select code, and the
Commands$
contains the string length of
LEN(Commands$)
IOEOI(ISC&, 1)
, respectively. The variable
contains the <8-bit data bytes>,
contains the swap value
.
HP E1340A High Speed Operation
command must be
) and line feed (
LF
)
and
IOEOL (ISC&
, " ",
0)
0
and " "
command string using
.
ADDR&
contains the SCPI
and
IOEOL(ISC&,
Endline$
WaveSeg%(1)
in
118
,

Advertisement

Table of Contents
loading

Table of Contents