380 Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide
20 :MEASure Commands
:MEASure:SOURce
(see page 798)
Command Syntax
:MEASure:SOURce <source1>[,<source2>]
<source1>,<source2> ::= {CHANnel<n> | FUNCtion
| MATH | WMEMory<r> | EXTernal}
<n> ::= 1 to (# of analog channels) in NR1 format
<r> ::= 1-2 in NR1 format
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.
EXTernal is only a valid source for the counter measurement (and <source1>).
Query Syntax
:MEASure:SOURce?
The :MEASure:SOURce? query returns the current source selections. Source2
applies only to :MEASure:DELay and :MEASure:PHASe measurements.
Return Format
<source1>,<source2><NL>
<source1>,<source2> ::= {CHAN<n> | FUNC | WMWM<r>
|EXT}
See Also: • "Introduction to :MEASure Commands" on page 350
• ":MARKer:MODE" on page 328
• ":MARKer:X1Y1source" on page 330
• ":MARKer:X2Y2source" on page 332
• ":MEASure:DELay" on page 359
• ":MEASure:PHASe" on page 372
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.
MATH is an alias for FUNCtion. The query will return FUNC if the source is FUNCtion or MATH.