User`s guide

2-10
Programming Getting Started
String Variables
String Variables
The output of the instrument may be numeric or character data depending on
what is queried. Refer to the specific commands for the formats and types of
data returned from queries.
The following example shows the data being returned to a string variable:
10 DIM Rang$[30]
20 OUTPUT 707;":CHANNEL1:RANGE?"
30 ENTER 707;Rang$
40 PRINT Rang$
50 END
After running this program, the controller displays:
+40.0E-00
Express String Variables Using Exact Syntax
In HP BASIC 6.3, string variables are case sensitive and must be expressed exactly
the same each time they are used.
Address Varies According to Configuration
For the example programs in the help file, assume that the device being programmed
is at device address 707. The actual address varies according to how you configured
the bus for your own application.