String Variable Example
The output of the oscilloscope 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.
Express String Variables Using Exact Syntax
N O T E
In Visual Basic, string variables are case sensitive and must be expressed exactly the same
each time they are used.
This example shows the data being returned to a string variable:
Dim strRang As String
myScope.WriteString ":CHANNEL1:RANGE?"
strRang = myScope.ReadString
Debug.Print strRang
After running this program, the computer displays:
+8.00000E- 01
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
Introduction to Programming
3
81