442
Chapter 7, IBASIC Controller
PROGram Subsystem
For simple string variables the value is returned as a quoted string (“This is an
example.”). For string arrays the values are returned as a comma separated list of
quoted strings (“This is an example.”,“This is an example.”). The string array
elements are returned in ascending order (Array$(0), Array$(1), Array$(2), etc.).
If an attempt is made to query the value of a string 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 string variable or array and
the string variable specified in <varname> does not exist in the program an
IBASIC
Error: -283 Illegal variable name
is generated.
Syntax
PROGram[:SELected]:STRing? <varname>
NOTE:
The program commands and syntax used to enter string data from the Test Set into the external
controller will depend upon 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.
Example of querying the value of a simple string variable
OUTPUT 714;"PROGram:SELected:STRing? Variable"
ENTER 714;Value$
or
OUTPUT 714;"PROG:STR? Variable"
ENTER 714;Value$
Example of querying the value of a string array with 3 elements of 5 characters each, such
as Array$(2)[5]
OUTPUT 714;"PROGram:SELected:STRing? Array"
ENTER 714 USING "3(X,5A,2X)";Result_array$(*)
or
OUTPUT 714;"PROG:STR? Array"
ENTER 714 USING "3(X,5A,2X)";Result_array$(*)
This example assumes that the string array named Result_array$(*) is dimensioned exactly the
same as the array named Array in the IBASIC program and that each element in the string ar-
ray Array has five characters in it.
Содержание 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 ...