![Rohde & Schwarz SMBV100B User Manual Download Page 593](http://html.mh-extra.com/html/rohde-and-schwarz/smbv100b/smbv100b_user-manual_1477881593.webp)
Network Operation and Remote Control
R&S
®
SMBV100B
591
User Manual 1178.4460.02 ─ 03
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
SMBV100B 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.
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 11.11.3, "SCPI Recording Export Settings"
Executing an SCPI script
An 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 10.3.3, "Assigning Actions to the [
11.11.1
Show SCPI Command
Access:
1. Select the parameter.
2. Open the context-sensitive menu (tap and hold).
3. Select "Show SCPI Command".
This function provides the syntax of the remote command with the current setting.
Copy
Copies the command and the current setting.
Close
Exits the "SCPI Command" dialog.
Automating Tasks with Remote Command Scripts