EasyManua.ls Logo

Rohde & Schwarz SMC100A - Page 189

Rohde & Schwarz SMC100A
352 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...
R&S SMC100A SCPI Command Structure and Syntax
1411.4060.32 5.16 E-1
Boolean Parameters
Boolean parameters represent two states. The on state (logically true) is
represented by ON or a numerical value unequal to 0. The off state (logically
untrue) is represented by off or the numerical value 0. On or off is returned by
a query.
Example:
Setting command: :SOURce:AM:STATe ON
Q
uery: :SOURce:AM:STATe? Answer: 1
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: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

Other manuals for Rohde & Schwarz SMC100A

Related product manuals