
323
Chapter 6, IBASIC Controller
PROGram Subsystem
:NUMber? <varname>
The :NUMBer? query command is used to return, to an
external controller, the current 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 in the IBASIC program, and can be sent as either character data (name
not enclosed in quotes) or string data (name enclosed in quotes).
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’".
Attempting to send a <var_name> longer than 12 characters as character data
(<var_name> not enclosed in quotes) will generate the following error:
GPIB Error: -112 Program mnemonic too long
For simple variables the value is returned as a series of ASCII characters
representing a numeric value in scientific notation (+3.00000000). For
arrays the values are returned as a comma separated list of ASCII characters
representing a numeric value in scientific notation. For example,
+3.00000000,+3.00000000,+3.00000000, etc.
Array values are sent by varying the rightmost dimension of the array the fastest.
If an attempt is made to query the value of a numeric variable or array and no
IBASIC program is in the Test Set an
IBASIC Error: -283 Illegal
variable name
is generated. If an attempt is made to query the value of a
numeric variable or array and the variable specified in <varname> does not exist
in the program an
IBASIC Error: -283 Illegal variable name
is
generated.
Syntax
PROGram[:SELected]:NUMBer? <varname>
NOTE:
The program commands and syntax used to enter data from the Test Set into the external
controller will depend upon the programming language used in the external controller.
Considerations such as type conversion (integer to real, real to complex, etc.), the sequence
in which values are entered into arrays, the capability to fill an entire array with a single
enter statement, etc. will depend upon the capabilities of the programming language used
in the external controller. The examples which follow represent the capabilities of HP
®
Rocky Mountain BASIC programming language running on an HP
®
9000/300 Series
Controller.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание E8285A
Страница 18: ...Contents 17 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 100: ...99 4 Status Reporting Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 268: ...267 6 IBASIC Controller Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 346: ...345 A Error Messages Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...