425
Chapter 7, IBASIC Controller
PROGram Subsystem
Syntax
PROGram[:SELected]:STRing <varname>{,<svalues>}
Example setting the value of a simple string variable
OUTPUT 714;"PROGram:SELected:STRing Variable,’data’"
or
OUTPUT 714;"PROG:STR Variable,’data’"
Example of setting the value of a string array with 3 elements of 5 characters each, such as
Array$(2)[5]
OUTPUT 714;"PROGram:SELected:STRing Array,’12345’,’12345’,’1
2345’"
or
OUTPUT 714;"PROG:STR Array,’12345’,’12345’,’12345’"
NOTE:
With Option Base 0 set in IBASIC, array indexing starts at 0.
:STRing? <varname>
The :STRing? query command is used to return, to an
external controller, the current value of string variables or arrays in an IBASIC
program in the Test Set. <varname> is the name of an existing string variable or
string array in the IBASIC program.
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:STR? ’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:
HP-IB Error: -112 Program mnemonic too long
NOTE:
If the programmer wishes to append the IBASIC ‘$’ string identifier onto the string variable
name, the string variable name must be sent as string data, that is enclosed in quotes. For
example,
OUTPUT 714;"PROG:STR? 'Var_name$'"
Appending the IBASIC ‘$’ string identifier onto the string variable name without
enclosing the string variable name in quotes will generate the following error:
HP-IB Error: -101 Invalid character
.
Содержание 8921A
Страница 14: ...14 ...
Страница 17: ...Contents 17 3 HP IB Command Guidelines Sequential and Overlapped Commands 72 Guidelines for Operation 73 ...
Страница 24: ...Contents 24 9 Error Messages ...
Страница 25: ...Contents 25 Index 593 ...
Страница 26: ...Contents 26 ...
Страница 27: ...27 1 Using HP IB ...
Страница 58: ...58 Chapter 1 Using HP IB Remote Local Modes ...
Страница 59: ...59 2 Methods For Reading Measurement Results ...
Страница 71: ...71 3 HP IB Command Guidelines ...
Страница 94: ...94 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Страница 95: ...95 4 HP IB Commands ...
Страница 100: ...100 Adjacent Channel Power ACP ...
Страница 150: ...150 Display DISPlay space TDMA test TESTs TFReq THLP TIBasic TMAKe TPARm TPRint TSEQn TSPec Returns current screen TX ...
Страница 173: ...173 System System SYSTem ERRor Returns integer value quoted string ...
Страница 236: ...236 Triggering Measurements ...
Страница 237: ...237 5 Advanced Operations ...
Страница 350: ...350 Chapter 6 Memory Cards Mass Storage Using Memory Cards Figure 20 Inserting a Memory Card ...
Страница 360: ...360 Chapter 6 Memory Cards Mass Storage Using External Disk Drives ...
Страница 361: ...361 7 IBASIC Controller ...
Страница 442: ...442 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Страница 559: ...559 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Страница 562: ...562 Chapter 8 Programming The Call Processing Subsystem Example Programs ...
Страница 563: ...563 9 Error Messages ...
Страница 592: ...592 ...