SCPI Parameters
- Updated2023-04-26
- 1 minute(s) read
SCPI Parameters
All SCPI input parameters have a default value, which is the value used if you do not specify a value.
The default value is also the value that the parameter takes when you issue a
*RST command or set the default value of a command, as in the following code:
CONFigure:RFSA:GPRF:FREQuency DEFAULT
In addition to setting the instrument default value, you can configure a parameter to the minimum or maximum value defined for the instrument. For example, the following command sets the parameter to the minimum legal value,
6E6.
Note This capability is only available for Real, I64, I32, and I16 data types.
CONFigure:RFSA:GPRF:FREQuency MINIMUMAnd the following command sets the parameter to the maximum legal value, 6E9.
CONFigure:RFSA:GPRF:FREQuency MAXIMUM
Parameters can also be embedded in the command node itself. An embedded parameter is a
suffix. In the following command the third node,
GPRF, contains the suffix
<i>.
CONFigure:RFSA:GPRF<i>:FREQuencyThe value of the suffix is made available within the SCPI command write/read VI from the Framework:ExecutionContext cluster terminal on the block diagram. The suffix is an integer value. According to SCPI-99 rules, if you omit a specified suffix, a value of 1 is implied.
The following commands address the same parameter value in the same instrument personality instance:
CONFigure:RFSA:GPRF:FREQuency
CONFigure:RFSA:GPRF1:FREQuency
Note There is a limitation of 28 controls and indicators per VI. To pass more than the 28 parameters to the command VI from the client, you can either use an autosize array of strings or a custom data type.