R&S AFQ100A
SCPI Command Structure and Syntax
1401.3084.32 5.21
E-3
Strings
Strings must always be entered within quotation marks (' or ").
Example:
DIAGnostic:MEASure:POINt? "DIAG_P5V"
Block data
Block data are a transmission format which is suitable for the transmission of
large amounts of data. A command using a block data parameter with definite
length has the following structure:
Example:
MMEMory:DATA test_file.wv,#45168xxxxxxxx
Test_file.wv denotes the name of the file to which the data are
written. The comma is followed by the binary data block. The
hash symbol # introduces the data block. The next number
indicates how many of the following digits describe the length of
the data block. In the example the 4 following digits indicate the
length to be 5168 bytes. The data bytes follow. During the
transmission of these data bytes all End or other control signs
are ignored until all bytes are transmitted.
The format of the binary files within the block depends on the IEC/IEEE-bus
command.
Use the IEEE-754 format for double precision floating point numbers. Each
number is represented by 8 bytes.
Example:
a# = 125.345678E6
b# = 127.876543E6
CALL IBWRT(modulator%,
"SOURCE:CORRECTION:CSET:DATA:FREQ #216" +
MKD$(a#) + MKD$(b#))
#' in the command string introduces the binary block,
'2' indicates that 2 digits specifying the length will follow
next,
16' is the length of the binary block (in bytes), here: 2
double precision floating point number with 8 bytes each.
The actual binary data follow now. As the function IBWRT
requires a text string, MKD$ is used for the type
conversion.
The following ASCII format has the same effect:
CALL IBWRT(modulator%,
"SOURCE:CORRECTION:CSET:DATA:FREQ 125.345678E6,
127.876543E6")