Network operation and remote control
R&S
®
AREG800A
227
User Manual 1179.3615.02 ─ 01
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 234.
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"
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
AREG800A 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
●
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 10.9.3, "SCPI recording export settings"
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 9.2.4, "How to assign actions to the [User] key"
Automating tasks with remote command scripts