Command reference
R&S
®
ZNA
1224
User Manual 1178.6462.02 ─ 20
Example:
PROG:INIM 'c:\preferences\myapp', 'this is a
message'
Write the string
this is a message
into the file
c:\preferences\myapp.ini
. The contents of the file look
like:
[MESSAGE] Send="this is a message" Receive=
Suppose the external program writes the string
this is a response
to the
Receive
key (and possibly dele-
tes the contents of the
Send
key.
PROG:INIM? 'c:\preferences\myapp'
Query the value of the key
Receive
in the
*.ini
file. The
response is
"this is a response"
.
PROGram[:SELected]:INIParameter
<IniFile>{ , <Key>,<Value> | '<Value>'}
Defines and writes one or several key/value pairs into the preferences file (
*.ini
)
specified by
<file_path>
. The information is entered into the
[PARAMETER]
section.
This command can be used to supply information to an external application launched
by :
.
The query must be sent with a single
<Key>
value. It reads the value associated with
the key from the
[PARAMETER]
section of the preferences file specified by
<file_path>
. If the key/value pair does not exist, the query returns an empty string.
Parameters:
<IniFile>
Name and path of the
*.ini
file. The
*.ini
extension may be
omitted as it is created automatically by the command. The
specified path/directory must exist. If the
*.ini
file does not
exist, it is created.
<Key>
Key for the key/value pair(s).
<Value>
String or numeric value for the key/value pair(s). If a string
parameter is supplied, it has to be enclosed in single or double
quotes.
Example:
PROG:INIP 'c:\preferences\myapp',
'myparameter', 'myvalue', 'startf', 123.05
Write two key/value pairs into the file
c:\preferences\myapp.ini
. The contents of the file look
like:
[PARAMETER]
myparameter="myvalue"
startf="123.05"
PROG:INIP? 'c:\preferences\myapp',
'myparameter'
Query the value of the key
myparameter
in the
*.ini
file. The
response is
"myvalue"
.
SCPI command reference