Query Return Values - Agilent Technologies InfiniiVision 5000 Series Programmer's Manual

Hide thumbs Also See for InfiniiVision 5000 Series:
Table of Contents

Advertisement

Query Return Values

Command headers immediately followed by a question mark (?) are
queries. Queries are used to get results of measurements made by the
instrument or to find out how the instrument is currently configured.
After receiving a query, the instrument interrogates the requested function
and places the answer in its output queue. The answer remains in the
output queue until it is read or another command is issued.
When read, the answer is transmitted across the bus to the designated
listener (typically a controller). For example, the query :TIMebase:RANGe?
places the current time base setting in the output queue. When using the
Agilent VISA COM library in Visual Basic, the controller statements:
Dim strQueryResult As String
myScope.WriteString ":TIMebase:RANGe?"
strQueryResult = myScope.ReadString
pass the value across the bus to the controller and place it in the variable
strQueryResult.
Read Query Results Before Sending Another Command. Sending another command or
N O T E
query before reading the result of a query clears the output buffer (the current response)
and places a Query INTERRUPTED error in the error queue.
Infinity
The representation of infinity is +9.9E+37. This is also the value returned
Representation
when a measurement cannot be made.
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
More About Oscilloscope Commands
11
677

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents