80
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
3
Introduction to Programming
Receiving Information from the Oscilloscope
After receiving a query (a command header followed by a question mark),
the oscilloscope places the answer in its output queue. The answer
remains in the output queue until it is read or until another command is
issued. When read, the answer is transmitted across the interface to the
computer.
The input statement for receiving a response message from an
oscilloscope's output queue typically has two parameters; the device
address and a format specification for handling the response message. For
example, with the VISA COM library, to read the result of the query
command :CHANNEL1:INPUT? you would use the ReadString() method:
Dim strSetting As String
myScope.WriteString ":CHANnel1:INPut?"
strSetting = myScope.ReadString
This would enter the current setting for the channel 1 coupling in the
string variable strSetting.
All results for queries sent in a program message must be read before
another program message is sent. For example, when you send the query
:MEASURE:RISETIME?, you must follow that query with an input
statement.
The format specification for handling response messages depends on both
the computer and the programming language.
N O T E
Handle Queries Properly
If you send another command or query before reading the result of a query, the output
buffer will be cleared and the current response will be lost. This will also generate a
query-interrupted error in the error queue. If you execute an input statement before you
send a query, it will cause the computer to wait indefinitely.
Summary of Contents for Infiniium 90000 Q-Series
Page 1: ...s1 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference...
Page 50: ...50 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 2 Setting Up...
Page 274: ...274 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 14 Digital Commands...
Page 292: ...292 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 15 Disk Commands...
Page 318: ...318 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 16 Display Commands...
Page 364: ...364 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 17 Function Commands...
Page 382: ...382 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 19 Histogram Commands...
Page 412: ...412 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 21 Limit Test Commands...
Page 416: ...416 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 22 Lister Commands...
Page 696: ...696 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 25 Measure Commands...
Page 702: ...702 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 26 Pod Commands...
Page 760: ...760 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 29 Self Test Commands...
Page 818: ...818 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 31 System Commands...
Page 830: ...830 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 32 Time Base Commands...
Page 930: ...930 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 33 Trigger Commands...
Page 1018: ...1018 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 37 Error Messages...
Page 1150: ...1150 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 38 Sample Programs...
Page 1186: ...1186 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference Index...