270
Agilent 6000 Series Oscilloscopes Programmer's Reference
3
Commands by Subsystem
:MEASure:SOURce
(see
Command Syntax
:MEASure:SOURce <source1>[,<source2>]
<source1>,<source2> ::= {<digital channels> | CHANnel<n> | FUNCtion
| MATH}
<digital channels> ::= DIGital0,..,DIGital15 for the MSO models
<n> ::= {1 | 2 | 3 | 4} for the four channel oscilloscope models
<n> ::= {1 | 2} for the two channel oscilloscope models
The :MEASure:SOURce command sets the default sources for
measurements. The specified sources are used as the sources for the
MEASure subsystem commands if the sources are not explicitly set with
the command. If a source is specified for any measurement, the current
source is changed to this new value. If :MARKer:MODE is set to OFF or
MANual, setting :MEASure:SOURce to CHANnel<n>, FUNCtion, or MATH
will also set :MARKer:X1Y1source to source1 and :MARKer:X2Y2source to
source2.
Query Syntax
:MEASure:SOURce?
The :MEASure:SOURce? query returns the current source selections. If
source2 is not specified, the query returns "NONE" for source2. If all
channels are off, the query returns "NONE,NONE". Source2 only applies to
:MEASure:DELay and :MEASure:PHASe measurements.
Return Format
<source1>,<source2><NL>
<source1>,<source2> ::= {<digital channels> | CHAN<n> | FUNC | NONE}
See Also:
•
"Introduction to :MEASure Commands"
•
•
•
•
•
Example Code
' MEASURE - The commands in the MEASURE subsystem are used to make
' measurements on displayed waveforms.
myScope.WriteString ":MEASURE:SOURCE CHANNEL1"
' Source to measure.
myScope.WriteString ":MEASURE:FREQUENCY?"
' Query for frequency.
varQueryResult = myScope.ReadNumber
' Read frequency.
MsgBox "Frequency:" + vbCrLf _
N O T E
MATH is an alias for FUNCtion. The query will return FUNC if the source is FUNCtion or
MATH.
Содержание DSO6014A/L
Страница 1: ...A Agilent 6000 Series Oscilloscopes Programmer s Reference...
Страница 16: ...16 Agilent 6000 Series Oscilloscopes Programmer s Reference...
Страница 30: ...30 Agilent 6000 Series Oscilloscopes Programmer s Reference 1 What s New...
Страница 540: ...540 Agilent 6000 Series Oscilloscopes Programmer s Reference 6 Error Messages...
Страница 562: ...562 Agilent 6000 Series Oscilloscopes Programmer s Reference 7 Status Reporting...
Страница 584: ...584 Agilent 6000 Series Oscilloscopes Programmer s Reference 8 More About Oscilloscope Commands...
Страница 624: ...624 Agilent 6000 Series Oscilloscopes Programmer s Reference 9 Programming Examples...