434
Chapter 7, IBASIC Controller
PROGram Subsystem
:NUMber <varname>{,<nvalues>}
The :NUMBer command is used to set, from
an external controller, the value of numeric variables or arrays in an IBASIC
program in the Test Set. <varname> is the name of an existing numeric variable or
array, and can be sent as either character data (<varname> not enclosed in quotes)
or string data (<varname> enclosed in quotes). <nvalues> is a list of comma-
separated <numeric_values> which are used to set the value of <varname>.
NOTE:
If the variable name <var_name> is longer than 12 characters it must be sent as string data
(<var_name> enclosed in quotes). For example, OUTPUT 714;"PROG:NUMB
’Var_name’,10".
Attempting to send a <var_name> longer than 12 characters as character data
(<var_name> not enclosed in quotes) will generate the following error:
HP-IB Error: -112 Program mnemonic too long
.
If an attempt is made to set the value of a numeric variable or array and no
IBASIC program is in the Test Set an
IBASIC Error: -282 Illegal
program name
is generated. If an attempt is made to set the value of a numeric
variable or array and the numeric variable specified in <varname> does not exist
in the program an
IBASIC Error: -283 Illegal variable name
is
generated. If the specified numeric variable cannot hold all of the specified
<numeric_values> an
IBASIC Error: -108 Parameter not allowed
is
generated.
Syntax
PROGram[:SELected]:NUMBer <varname>{,<nvalues>}
Example setting the value of a simple variable
OUTPUT 714;"PROGram:SELected:NUMBer Variable,15"
or
OUTPUT 714;"PROG:NUMB Variable,15"
Example setting the value of a one dimensional array [Array(5)] with 6 elements
OUTPUT 714;"PROGram:SELected:NUMBer Array,0,1,2,3,4,5"
or
OUTPUT 714;"PROG:NUMB Array,0,1,2,3,4,5"
NOTE:
Individual array elements cannot be set with the :NUMBer command.
Содержание 8920B
Страница 10: ...10 ...
Страница 16: ...Contents 16 9 Error Messages Index 673 ...
Страница 17: ...17 1 Using HP IB ...
Страница 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Страница 49: ...49 2 Methods For Reading Measurement Results ...
Страница 61: ...61 3 HP IB Command Guidelines ...
Страница 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Страница 85: ...85 4 HP IB Commands ...
Страница 90: ...90 Adjacent Channel Power ACP ...
Страница 116: ...116 Configure I O Configure ...
Страница 156: ...156 Call Processing ...
Страница 162: ...162 Display DISPlay space TDMA test TESTs TFReq THLP TIBasic TMAKe TPARm TPRint TSEQn TSPec Returns current screen TX ...
Страница 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Страница 242: ...242 Common Command Descriptions ...
Страница 251: ...251 5 Advanced Operations ...
Страница 377: ...377 7 IBASIC Controller ...
Страница 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Страница 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Страница 643: ...643 9 Error Messages ...
Страница 672: ...672 ...
Страница 682: ...Index 682 ...