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
Содержание 54620A
Страница 6: ...6 ...
Страница 9: ...1 Introduction to Programming ...
Страница 21: ...2 Programming Getting Started ...
Страница 35: ...3 Programming over HP IB ...
Страница 40: ...40 ...
Страница 41: ...4 Programming over RS 232 C ...
Страница 48: ...48 ...
Страница 49: ...5 Programming and Documentation Conventions ...
Страница 53: ...Programming and Documentation Conventions The command tree 53 ...
Страница 60: ...60 ...
Страница 61: ...6 Status Reporting ...
Страница 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Страница 68: ...68 ...
Страница 69: ...7 Installing and Using the Programmer s Reference ...
Страница 76: ...76 ...
Страница 77: ...8 Programmer s Quick Reference ...