User`s manual
278 Chapter 8
O:\Manuals\E6380A_Progguid\Book\Ibasic.fm
IBASIC Controller
PROGram Subsystem
For simple variables the value is returned as a series of ASCII
characters representing a numeric value in scientific notation
(+3.00000000000E+000). For arrays the values are returned as a
comma separated list of ASCII characters representing a numeric value
in scientific notation. For example:
+3.00000000000E+000,+3.00000000000E+000,+3.00000000000E+000.
..
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.
Example 8-28 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
that follow represent the capabilities of the Agilent Technologies Rocky
Mountain BASIC (RMB) programming language running on an HP
9000/300 Series Controller.
Example 8-29 Example querying the value of a simple variable
OUTPUT 714;"PROGram:SELected:NUMBer? Variable"
ENTER 714;Value
or
OUTPUT 714;"PROG:NUMB? Variable"
ENTER 714;Value
In this example, the variable named Value in the ENTER statement
must be the same type as the variable named Variable in the IBASIC
program.