EasyManua.ls Logo

Rohde & Schwarz SMB 100a - Page 178

Rohde & Schwarz SMB 100a
328 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SCPI Command Structure and Syntax R&S SMB
1407.0806.32 5.16 E-2
Text
Text parameters observe the syntax rules for key words, i.e. they can be
entered using a short or long form. Like any parameter, they have to be
separated from the header by a white space. In the case of a query, the short
form of the text is provided.
Example:
Setting command: :SOURce:SWEep:POWer:MODE MANual
Query: :SOURce:SWEep:POWer:MODE? Answer: MAN
Strings
Strings must always be entered within quotation marks (' or ").
Example: CORR:CSET "UCOR1" or :CORR:CSET 'UCOR1'
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
SOURce:LIST:FREQuency|:POWer
SOURce:CORRection:CSET:DATA:FREQuency|:POWer
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 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(generator%, "SOURce:CORRection:CSET:DATA:FREQ
125.345678E6, 127.876543E6")

Table of Contents

Related product manuals