R&S®SML / R&S®SMV03 Structure and Syntax of Device Messages
1090.3123.12 E-6 5.11
Strings St
rings must always be entered in inverted commas (' or ").
Example: SYSTem:LANGuage "SCPI" or
:SYSTem:LANGuage 'SCPI'
Block data Block data are a transmission format which is suitable for the transmission of
large amounts of data. A command with a block data parameter has the
following structure:
Example: HEADer:HEADer #45168xxxxxxxx
The data block is preceded by the ASCII character #. The next number indicates
how many of the following digits describe the length of the data block. In the
example, the four following digits indicate the length to be 5168 bytes. This is
followed by the data bytes. During the transmission of the data bytes, all End or
other control signs are ignored until all bytes are transmitted. Data elements
comprising more than one byte are transmitted with the byte being the first
which was specified by the SCPI command "FORMat:BORDer".
The format of the binary data within a block depends on the IEC/IEEE-bus
command. The commands
:SOURce:CORRection:CSET:DATA:FREQuency
:SOURce:CORRection:CSET:DATA:POWer
:SYSTem:MSEQuence:DWELl
:SYSTem:MSEQuence:RCL
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(generator%, "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 numbers of 8 bytes each.
– The binary data follow. Since the function IBWRT requires a text string,
MKD$ is used for type conversion.
The following ASCII format has the same effect:
CALL IBWRT(generator%, "SOURCE:CORRECTION:CSET:DATA:FREQ
125.345678E6, 127.876543E6")