EasyManua.ls Logo

R&S SMA100B - Page 431

R&S SMA100B
822 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...
Network operation and remote control
R&S
®
SMA100B
431User Manual 1178.3834.02 ─ 09
If you need to look up the SCPI command, the instrument offers two ways to figure it
out quickly.
"Show SCPI command" (context-sensitive menu)
Displays the SCPI command syntax of a selected parameter including the current
setting value, see "Finding out the SCPI command using "Show SCPI Command""
on page 438.
The "Copy" function enables you to write a SCPI script conveniently by hand.
Instrument help ([Help] key)
Opens a help topic that describes the selected parameter or instrument function,
including a cross-reference to the corresponding SCPI command. The reference
leads you to the description of the SCPI command comprising the complete SCPI
syntax, all available setting values, value ranges, etc.
See "Finding out the SCPI command using the online help" on page 438.
Creating and exporting a script file
When the script list is completed, a code generator translates the SCPI commands into
the source code of a proprietary programming language, using a code template. There-
fore, each language requires an appropriate code template. When converted, you can
save the script in a file with an extension corresponding to the programming language.
The R&S SMA100B provides the following predefined code templates by default:
Plain SCPI
Represents SCPI base format, that is ASCII format, saved as text file (*.txt).
MATLAB
A programming environment, frequently used in signal processing and test and
measurement applications (*.m).
You can directly use this format with MATLAB(c) Toolkit. For comprehensive infor-
mation on this topic, refer to the application note 1GP60: MATLAB Toolkit for R&S
Signal Generators.
NICVI
An ANSI C programming environment designed for measurements and tests (*.c).
You can directly use this format with National Instruments LabWindows CVI.
Python3
A general-purpose and high-level programming language (*.py).
You can also convert a script to a user-specific format. In this case, you need a code
template with the extension *.expcodetmpl.
For information on how to select the code template and save the script in a file, see
Chapter 13.9.3, "SCPI recording export settings", on page 433.
Executing a SCPI script
A SCPI script primarily runs on the controller PC. In addition, you can execute a script
directly on the instrument, by assigning the script to the [ (User)] key.
See Chapter 12.2.4, "How to assign actions to the [ (User)] key", on page 353.
Automating tasks with remote command scripts

Table of Contents

Other manuals for R&S SMA100B

Related product manuals