String variables
The instrument output 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.
E
xpress String Variables Using Exact Syntax
In HP BASIC, 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 have configured the bus for your own application.
The following example shows the data being returned to a string variable:
10 DIM Rang$[30]
20 OUTPUT 707;":TIMEBASE:RANGE?"
30 ENTER 707;Rang$
40 PRINT Rang$
50 END
If the current time base setting is 10 ms/div, the controller displays:
+1.00000E-01
Programming Getting Started
String variables
31
Summary of Contents for 54620A
Page 6: ...6 ...
Page 9: ...1 Introduction to Programming ...
Page 21: ...2 Programming Getting Started ...
Page 35: ...3 Programming over HP IB ...
Page 40: ...40 ...
Page 41: ...4 Programming over RS 232 C ...
Page 48: ...48 ...
Page 49: ...5 Programming and Documentation Conventions ...
Page 53: ...Programming and Documentation Conventions The command tree 53 ...
Page 60: ...60 ...
Page 61: ...6 Status Reporting ...
Page 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Page 68: ...68 ...
Page 69: ...7 Installing and Using the Programmer s Reference ...
Page 76: ...76 ...