Agilent Technologies E8285A User Manual page 329

Cdma mobile station test set
Hide thumbs Also See for E8285A:
Table of Contents

Advertisement

Chapter 6, 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'"
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','12345'"
OUTPUT 714;"PROG:STR Array,'12345','12345','12345'"
Note: With Option Base 0 set in IBASIC, array indexing starts at 0.
:STRing? <varname>
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:
GPIB Error: -112 Program mnemonic too long
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
GPIB Error: -101 Invalid character
328
S:\agilent\e8285\USRGUIDE\BOOK\CHAPTERS\ibasic.fb
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
or
or
The :STRing? query command is used to return, to an

Advertisement

Table of Contents
loading

Table of Contents