Command Reference
R&S
®
ZNC
532
User Manual 1173.9557.02 ─ 13
Tip: Executing batch files; command prompt
When executing batch scripts or other DOS applications, the analyzer does not display
any DOS windows; the screen is left for the vector network analyzer (VNA) application.
The same applies to the Windows NT command prompt (
cmd.exe
). To access the com-
mand prompt, proceed as follows:
●
Create a batch file (e.g.
Start_cmd.bat
) containing the command line
start cmd.exe
and store the file to
C:\Winnt\system32
.
●
Execute the batch file:
PROG:EXEC 'C:\winnt\system32\Start_cmd.bat'
The command prompt window is displayed in front of the VNA application. You can also
open several command prompt windows simultaneously.
Setting parameters:
<AppName>
String variable containing the name and path of an application
program to be executed or of a file to be opened. The path can be
defined as an absolute path (e.g. 'c:\...') or relative to the current
directory (
<AppName>
can be used to separate the application name from (optional)
parameters.
Example:
PROGram:SELected:NAME PROG
Select general program execution on the analyzer.
MMEM:CDIR 'C:\Program Files\Rohde-Schwarz\Vector
Network Analyzer\Bin'
Go to the VNA program directory.
PROG:EXEC 'iecwin32.exe'
Start the application IECWIN32.
Usage:
Setting only
PROGram[:SELected]:INIMessage
<IniFile>[, <SendValue>]
Writes a message
<SendValue>
into the preferences (
*.ini
) file specified by
<IniFile>
. The message is entered into the
[MESSAGE]
section using the fixed key
Send
; the value for the fixed key
Receive
is set to an empty string.
The query reads the value associated with the fixed key
Receive
from the
[MESSAGE]
section of the preferences file specified by
<IniFile>
. If no value exists
for that key, the query returns an empty string.
Both commands can be used to establish a simple file-based two-way communication
mechanism to an external application launched by
;
see example.
Parameters:
<IniFile>
Name and path of the
*.ini
file. The
*.ini
extension may be
omitted as it is created automatically by the command. The speci-
fied path/directory must exist. If the
*.ini
file does not exist, it is
created.
<SendValue>
Value for the fixed key
Send
.
SCPI Command Reference