Oscilloscope · SCPI command reference

Tektronix MSO64B SCPI commands

The Tektronix MSO64B oscilloscope is controlled remotely with SCPI commands. TestFlow's instrument library holds 268 commands for it, 147 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the MSO64B on a real bench.

Commands
268
Queries
147
Subsystems
25
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Tektronix MSO64B and writes the report from the measured results.

Get started

Control the Tektronix MSO64B from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Tektronix MSO64B's VISA address

# Paste the address of your Tektronix MSO64B (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("AUTOset EXECute")  # Autoset
print(inst.query("MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?"))  # Get Measurement Value

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Tektronix MSO64B and writes the report from the measured results.

Get started

Run a MSO64B test without writing code

Describe the test in a sentence, for example “autoset on the MSO64B, then get measurement value and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

268 commands in 25 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

MEASU subsystem (56)

CommandWhat it doesArguments
MEASUrement:ADDMEAS <type>Add Measurement. Adds a measurement to the measurement table.Text: measurement type per manual MEASUrement:ADDMEAS
MEASUrement:MEAS1:TYPe <type>Set Measurement Type. Sets the type of measurement 1.Text: measurement type per manual MEASUrement:MEAS<x>:TYPe
MEASUrement:MEAS1:TYPe?Get Measurement Type. Returns the type of measurement 1.None
MEASUrement:MEAS1:SOUrce <source>Set Measurement Source. Sets the source waveform of measurement 1.Text: channel source per manual MEASUrement:MEAS<x>:SOURCE
MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?Get Measurement Value. Returns the mean of measurement 1 over the current acquisition.None
MEASUrement:MEAS1:RESUlts:CURRentacq:MAXimum?Get Measurement Maximum. Returns the maximum of measurement 1 over the current acquisition.None
MEASUrement:MEAS1:RESUlts:CURRentacq:MINimum?Get Measurement Minimum. Returns the minimum of measurement 1 over the current acquisition.None
MEASUrement:MEAS1:STATUS?Get Measurement Status. Returns the status of measurement 1.None
MEASUrement:MEAS<x>:FAILCount?Query Measurement Fail Count. Returns the running count of measurement limit failures for the selected measurement.Number: Measurement number x, 1 or greater
MEASUrement:MEAS<x>:SOURCE <source>Set Measurement Source (MEASUREMENT:MEAS<X>:SOURCE). Sets the local input source of the measurement.Number: measurement number, 1 or greater; Text: CH<x>, MATH<x> or REF<x>
MEASUrement:MEAS<x>:SOURCE?Query Measurement Source. Returns the local input source of the measurement.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:PASSFAILENabled <enable>Set Pass Fail Enable. Enables or disables pass/fail testing for the measurement.Number: measurement number, 1 or greater; Number: 0 disables, 1 enables
MEASUrement:MEAS<x>:PASSFAILENabled?Query Pass Fail Enable. Returns whether pass/fail testing is enabled for the measurement.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:PASSFAILHIGHlimit <limit>Set Pass Fail High Limit. Sets the high limit used for the measurement pass/fail test.Number: measurement number, 1 or greater; Number: high limit value
MEASUrement:MEAS<x>:PASSFAILHIGHlimit?Query Pass Fail High Limit. Returns the high limit used for the measurement pass/fail test.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:PASSFAILLOWlimit <limit>Set Pass Fail Low Limit. Sets the low limit used for the measurement pass/fail test.Number: measurement number, 1 or greater; Number: low limit value
MEASUrement:MEAS<x>:PASSFAILLOWlimit?Query Pass Fail Low Limit. Returns the low limit used for the measurement pass/fail test.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:PASSFAILLIMit <limit>Set Pass Fail Limit. Sets the limit used for the measurement pass/fail test.Number: measurement number, 1 or greater; Number: limit value
MEASUrement:MEAS<x>:PASSFAILLIMit?Query Pass Fail Limit. Returns the limit used for the measurement pass/fail test.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:PASSFAILMARgin <margin>Set Pass Fail Margin. Sets the allowed margin for limit comparisons in the pass/fail check.Number: measurement number, 1 or greater; Number: margin as a fraction, default 0.05 (5%)
MEASUrement:MEAS<x>:PASSFAILMARgin?Query Pass Fail Margin. Returns the allowed margin for limit comparisons in the pass/fail check.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:STATUS?Query Pass Fail Status. Returns PASS or FAIL for the measurement against its user limits.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:MEASRange:STATE <state>Set Measurement Range State. Turns the measurement range limits on or off.Number: measurement number, 1 or greater; Text: OFF, ON, 0 or 1
MEASUrement:MEAS<x>:MEASRange:STATE?Query Measurement Range State. Returns whether the measurement range limits are on.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:MEASRange:MIN <minimum>Set Measurement Range Minimum. Sets the minimum measurement range limit.Number: measurement number, 1 or greater; Number: minimum range limit value
MEASUrement:MEAS<x>:MEASRange:MIN?Query Measurement Range Minimum. Returns the minimum measurement range limit.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:XUNIT?Query Measurement Horizontal Units. Returns the horizontal scale units of the measurement.Number: measurement number, 1 or greater
MEASUrement:MEAS<x>:YUNIT?Query Measurement Vertical Units. Returns the vertical scale units of the measurement.Number: measurement number, 1 or greater
MEASUrement:MEAS<n>:TYPe <type>Set Measurement Type (MEASUREMENT:MEAS<N>:TYPE). Sets the measurement type for a measurement.Number: measurement number; Text: measurement type keyword from the manual
MEASUrement:MEAS<n>:TYPe?Query Measurement Type. Returns the measurement type of a measurement.Number: measurement number
MEASUrement:MEAS<n>:SOURCE <source>Set Measurement Source (MEASUREMENT:MEAS<N>:SOURCE). Sets the source waveform of a measurement.Number: measurement number; Text: source channel name
MEASUrement:MEAS<n>:SOURCE?Query Measurement Source (MEASUREMENT:MEAS<N>:SOURCE?). Returns the source waveform of a measurement.Number: measurement number
MEASUrement:DELete "MEAS<n>"Delete Measurement. Deletes the specified measurement.Number: measurement number
MEASUrement:DELETEALLDelete All Measurements. Deletes all active measurements.None
MEASUrement:LIST?List Measurements. Lists all currently defined measurements.None
MEASUrement?Query All Measurement Parameters. Returns all measurement parameters.None
MEASU:MEAS1:SUBGROUP:RESUlts:CURRentacq:MEAN?Read Mean Measurement Result. Returns the mean value of measurement 1 for the current acquisition.None
MEASUrement:MEAS<n>:CCRESUlts:CURRentacq:MEAN?Read Cycle-Cycle Mean. Returns the mean cycle-cycle value of a measurement for the current acquisition.Number: measurement number
MEASUrement:MEAS<meas>:TYPe <type>Set Measurement Type (MEASUREMENT:MEAS<MEAS>:TYPE). Sets the type of the selected measurement.Number: measurement slot number, positive integer; Text: measurement type name as listed in the manual, e.g. FREQUENCY, PERIOD, PK2PK, RMS, MEAN, AMPLITUDE
MEASUrement:MEAS<meas>:TYPe?Query Measurement Type (MEASUREMENT:MEAS<MEAS>:TYPE?). Returns the type of the selected measurement.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:SOUrce1 <source>Set Measurement Source (MEASUREMENT:MEAS<MEAS>:SOURCE1). Sets the source of the selected measurement.Number: measurement slot number, positive integer; Text: source name, e.g. CH1, CH2, MATH1
MEASUrement:MEAS<meas>:SOUrce1?Query Measurement Source (MEASUREMENT:MEAS<MEAS>:SOURCE…). Returns the source of the selected measurement.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:STATUS?Query Measurement Status. Returns the pass/fail status of the selected measurement.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:FAILCount?Query Measurement Fail Count (MEASUREMENT:MEAS<MEAS>:FAILCO…). Returns the number of measurement failures for the selected measurement.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:RESUlts:CURRentacq:MEAN?Query Current Acquisition Mean. Returns the mean value of the measurement for the current acquisition.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:RESUlts:CURRentacq:MAXimum?Query Current Acquisition Maximum. Returns the maximum value found since the last statistical reset.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:RESUlts:CURRentacq:MINimum?Query Current Acquisition Minimum. Returns the minimum value found since the last statistical reset.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:RESUlts:CURRentacq:PK2PK?Query Current Acquisition Peak-to-Peak. Returns the peak-to-peak value for the current acquisition.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:RESUlts:CURRentacq:STDDev?Query Current Acquisition Standard Deviation. Returns the standard deviation of the measurement over accumulated acquisitions.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:RESUlts:CURRentacq:POPUlation?Query Current Acquisition Population. Returns the population (number of complete cycles) for the current acquisition.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:XUNIT?Query Measurement Horizontal Units (MEASUREMENT:MEAS<MEAS>:XUNIT?). Returns the horizontal scale units of the measurement.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:YUNIT?Query Measurement Vertical Units (MEASUREMENT:MEAS<MEAS>:YUNIT?). Returns the vertical scale units of the measurement.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:PASSFAILENabled <state>Set Pass/Fail Test Enable. Enables or disables the pass/fail test for the measurement.Number: measurement slot number, positive integer; Text: ON or OFF
MEASUrement:MEAS<meas>:PASSFAILENabled?Query Pass/Fail Test Enable. Returns the pass/fail test enable status.Number: measurement slot number, positive integer
MEASUrement:MEAS<meas>:PASSFAILLIMit <value>Set Pass/Fail Limit. Sets the limit for the measurement pass/fail test.Number: measurement slot number, positive integer; Number: limit value in measurement units
MEASUrement:MEAS<meas>:PASSFAILLIMit?Query Pass/Fail Limit. Returns the limit for the measurement pass/fail test.Number: measurement slot number, positive integer

Trigger (TRIGger) (35)

CommandWhat it doesArguments
TRIGger:A:MODe <mode>Set Trigger Mode. Sets the A trigger mode.Text: AUTO|NORMal
TRIGger:A:MODe?Query Trigger Mode. Returns the A trigger mode.None
TRIGger:A:HOLDoff:BY <mode>Set Holdoff By. Selects how the A trigger holdoff is set.Text: TIMe|RANDom
TRIGger:A:HOLDoff:BY?Query Holdoff By. Returns how the A trigger holdoff is set.None
TRIGger:A:HOLDoff:TIMe <time>Set Holdoff Time. Sets the A trigger holdoff time.Number: 0 to 10 seconds
TRIGger:A:HOLDoff:TIMe?Query Holdoff Time. Returns the A trigger holdoff time in seconds.None
TRIGger:A:LOGICQUALification <type>Set Logic Qualification. Sets the type of logic qualification for the trigger.Text: AND|OR|NAND|NOR
TRIGger:A:LOGICQUALification?Query Logic Qualification. Returns the type of logic qualification.None
TRIGger:AUXLevel <level>Set Auxiliary Trigger Level. Sets the Auxiliary Input trigger level for an edge trigger.Text: <NR3> volts, ECL (-1.3 V), or TTL (1.4 V)
TRIGger:AUXLevel?Query Auxiliary Trigger Level. Returns the Auxiliary Input trigger level in volts.None
TRIGger:B:BY <mode>Set B Trigger By. Selects whether the B trigger follows an event count or a time after the A trigger.Text: EVENTS|TIMe
TRIGger:B:BY?Query B Trigger By. Returns whether the B trigger follows events or time.None
TRIGger:B:EVENTS:COUNt <count>Set B Trigger Event Count. Sets the number of events before the B trigger.Number: 1 to 65471
TRIGger:B:EVENTS:COUNt?Query B Trigger Event Count. Returns the number of B trigger events.None
TRIGger:B:TIMe <time>Set B Trigger Time. Sets the B trigger delay time after the A trigger.Number: time in seconds
TRIGger:B:TIMe?Query B Trigger Time. Returns the B trigger delay time in seconds.None
TRIGger:B:RESET:TYPe <type>Set B Reset Type. Sets the type of A to B sequential trigger reset.Text: NONe|TIMEOut|EDGE
TRIGger:B:RESET:TYPe?Query B Reset Type. Returns the type of A to B sequential trigger reset.None
TRIGger:B:RESET:EDGE:SLOpe <slope>Set B Reset Edge Slope. Sets the slope for the sequential edge trigger reset.Text: RISe|FALL|EITher
TRIGger:B:RESET:EDGE:SLOpe?Query B Reset Edge Slope. Returns the slope for the sequential edge trigger reset.None
TRIGger:B:RESET:TIMEOut:TIMe <time>Set B Reset Timeout Time. Sets the reset timer for a sequential timeout trigger reset.Number: time in seconds
TRIGger:B:RESET:TIMEOut:TIMe?Query B Reset Timeout Time. Returns the reset timer for a sequential timeout trigger reset.None
TRIGger:A:EDGE:SOUrce <source>Set Trigger Source. Sets the source of the A edge trigger.Text: channel source per manual TRIGger:A:EDGE:SOUrce
TRIGger:A:EDGE:SOUrce?Get Trigger Source. Returns the source of the A edge trigger.None
TRIGger:A:EDGE:SLOpe <slope>Set Trigger Slope. Sets the slope of the A edge trigger.Text: slope per manual TRIGger:A:EDGE:SLOpe
TRIGger:A:EDGE:SLOpe?Get Trigger Slope. Returns the slope of the A edge trigger.None
TRIGger:A:LEVel:CH1 <level>Set Trigger Level. Sets the A trigger level on channel 1.Number: volts, range per manual TRIGger:A:LEVel:CH<x>
TRIGger:A:LEVel:CH1?Get Trigger Level. Returns the A trigger level on channel 1.None
TRIGger:STATE?Get Trigger State. Returns the current trigger state.None
TRIGger:B:STATE?Query B Trigger State. Queries the current state of the B triggering system.None
TRIGger:A:TRANsition:SOUrce <source>Set Trigger Rise/Fall Source. Sets the source of an A-trigger rise/fall trigger.Text: CH<x>
TRIGger:A:TRANsition:POLarity <polarity>Set Trigger Rise/Fall Polarity. Sets the slope of an A-trigger rise/fall trigger.Text: EITher,NEGative,POSitive
TRIGger:A:PULSEWidth:HIGHLimit <seconds>Set Pulse Width High Limit. Sets the upper pulse width limit of the A trigger.Number: upper pulse width limit in seconds
TRIGger:A:PULSEWidth:LOWLimit <seconds>Set Pulse Width Low Limit. Sets the lower pulse width limit of the A trigger.Number: lower pulse width limit in seconds
TRIGger:A:TIMEOut:TIMe <seconds>Set Pulse Timeout Time. Sets the timeout time of the A pulse trigger.Number: timeout time in seconds

CH subsystem (35)

CommandWhat it doesArguments
CH1:SCAle <scale>Set Vertical Scale. Sets the vertical scale of channel 1.Number: volts per division, range per manual CH<x>:SCAle
CH1:SCAle?Get Vertical Scale. Returns the vertical scale of channel 1.None
CH1:OFFSet <offset>Set Vertical Offset. Sets the vertical offset of channel 1.Number: volts, range per manual CH<x>:OFFSet
CH1:OFFSet?Get Vertical Offset. Returns the vertical offset of channel 1.None
CH1:COUPling <coupling>Set Coupling. Sets the input coupling of channel 1.Text: coupling mode per manual CH<x>:COUPling
CH1:COUPling?Get Coupling. Returns the input coupling of channel 1.None
CH<x>:SCAle <scale>Set Vertical Scale (CH<X>:SCALE). Sets the vertical scale of the specified analog channel.Number: Volts per division, for example 200E-3 for 200 mV/div
CH<x>:SCAle?Query Vertical Scale. Returns the vertical scale of the specified analog channel.None
CH<x>:TERmination <resistance>Set Input Termination. Sets the vertical termination of the specified analog channel.Number: Input resistance in ohms: 50 or 1000000 (available values depend on model and accessories)
CH<x>:TERmination?Query Input Termination. Returns the vertical termination of the specified analog channel.None
CH<x>:BANdwidth:FILTer:OPTIMIZation <shape>Set Channel Filter Shape. Sets the channel filter shape.Text: STEPRESPONSE (Bessel-Thompson, minimal overshoot) or FLATNESS (brick-wall, flat in band)
CH<x>:BANdwidth:FILTer:OPTIMIZation?Query Channel Filter Shape. Returns the channel filter shape.None
CH<x>:CLIPping?Query Channel Clipping. Returns whether the channel input exceeds the A/D converter range.None
CH<x>:PRObe:RESistance?Query Probe Resistance. Returns the input resistance of the probe attached to the channel.None
CH<x>:PRObe:INPUTMode:AOFFSet <offset>Set Probe A Mode Offset. Sets the A mode offset of the probe attached to the channel.Number: Offset in vertical units (V or A)
CH<x>:PRObe:INPUTMode:AOFFSet?Query Probe A Mode Offset. Returns the A mode offset of the probe attached to the channel.None
CH<x>:PRObe:INPUTMode:BOFFSet <offset>Set Probe B Mode Offset. Sets the B mode offset of the probe attached to the channel.Number: Offset in vertical units (V or A); requires a probe with dual inputs
CH<x>:PRObe:INPUTMode:BOFFSet?Query Probe B Mode Offset. Returns the B mode offset of the probe attached to the channel.None
CH<x>:PRObe:INPUTMode:COFFSet <offset>Set Probe Common Mode Offset. Sets the common mode offset of the probe attached to the channel.Number: Offset in vertical units (V or A); requires a probe with dual inputs
CH<x>:PRObe:INPUTMode:COFFSet?Query Probe Common Mode Offset. Returns the common mode offset of the probe attached to the channel.None
CH<x>:PRObe:INPUTMode:DOFFSet <offset>Set Probe Differential Offset. Sets the differential offset of the probe attached to the channel.Number: Offset in vertical units (V or A); requires a probe with dual inputs
CH<x>:PRObe:INPUTMode:DOFFSet?Query Probe Differential Offset. Returns the differential offset of the probe attached to the channel.None
CH<x>:SCALERATio <ratio>Set Channel Scale Ratio. Sets the scale ratio of the specified analog channel.Number: Scale ratio for the analog channel, for example 2.0
CH<x>:SCALERATio?Query Channel Scale Ratio. Returns the scale ratio of the specified analog channel.None
CH<x>:OFFSet <offset>Set Channel Offset. Sets the channel offset.Number: offset in volts
CH<x>:OFFSet?Query Channel Offset. Returns the channel offset.None
CH<x>:POSition <position>Set Channel Position. Sets the vertical position for the specified analog channel.Number: vertical position in divisions
CH<x>:POSition?Query Channel Position. Returns the vertical position for the specified analog channel.None
CH<x>:COUPling <coupling>Set Channel Coupling. Sets the coupling setting for the specified channel.Text: coupling value as documented for the channel
CH<x>:COUPling?Query Channel Coupling. Returns the coupling setting for the specified channel.None
CH<x>:BANdwidth <bandwidth>Set Channel Bandwidth. Sets the bandwidth of the specified channel.Number: bandwidth limit as documented for the channel
CH<x>:BANdwidth?Query Channel Bandwidth. Returns the bandwidth of the specified channel.None
CH<x>:PRObe:GAIN?Query Probe Gain. Returns the gain of the probe attached to the specified channel.None
CH<channel>:SCAle <volts_per_div>Set Vertical Scale (CH<CHANNEL>:SCALE). Sets the vertical scale of an analog channel.Number: channel number 1 to 4; Number: vertical scale in volts per division
CH<channel>:SCAle?Query Vertical Scale (CH<CHANNEL>:SCALE?). Returns the vertical scale of an analog channel.Number: channel number 1 to 4

AFG subsystem (23)

CommandWhat it doesArguments
AFG:OUTPut:STATE <state>Set AFG Output State. Turns the AFG output on or off; requires option AFG.Text: ON, OFF, 1, 0
AFG:OUTPut:STATE?Query AFG Output State. Returns the AFG output state; requires option AFG.None
AFG:FUNCtion <function>Set AFG Function. Sets the AFG function to execute; requires option AFG.Text: SINE, SQUare, PULSe, RAMP, NOISe, DC, SINC, GAUSsian, LORENtz, ERISe, EDECAy, HAVERSINe, CARDIac, ARBitrary
AFG:FUNCtion?Query AFG Function. Returns the AFG function; requires option AFG.None
AFG:FREQuency <frequency>Set AFG Frequency. Sets the AFG frequency; requires option AFG.Number: frequency in Hz
AFG:FREQuency?Query AFG Frequency. Returns the AFG frequency in Hz; requires option AFG.None
AFG:AMPLitude <amplitude>Set AFG Amplitude. Sets the AFG amplitude, peak to peak; requires option AFG.Number: peak-to-peak amplitude in volts
AFG:AMPLitude?Query AFG Amplitude. Returns the AFG amplitude, peak to peak; requires option AFG.None
AFG:OFFSet <offset>Set AFG Offset. Sets the AFG offset value; requires option AFG.Number: offset in volts
AFG:OFFSet?Query AFG Offset. Returns the AFG offset in volts; requires option AFG.None
AFG:AMPLitude <volts>Set AFG Amplitude (AFG:AMPLITUDE). Sets the AFG amplitude.Number: amplitude in volts peak to peak
AFG:FREQuency <hz>Set AFG Frequency (AFG:FREQUENCY). Sets the AFG frequency.Number: frequency in Hz
AFG:OFFSet <volts>Set AFG Offset (AFG:OFFSET). Sets the AFG offset.Number: offset in volts
AFG:HIGHLevel <volts>Set AFG High Level. Sets the high level of the AFG output waveform.Number: high level in volts
AFG:HIGHLevel?Query AFG High Level. Returns the high level of the AFG output waveform.None
AFG:LOWLevel <volts>Set AFG Low Level. Sets the low level of the AFG output waveform.Number: low level in volts
AFG:LOWLevel?Query AFG Low Level. Returns the low level of the AFG output waveform.None
AFG:SQUare:DUty <percent>Set AFG Square Duty Cycle. Sets the AFG square duty cycle.Number: duty cycle in percent
AFG:SQUare:DUty?Query AFG Square Duty Cycle. Returns the AFG square duty cycle.None
AFG:RAMP:SYMmetry <percent>Set AFG Ramp Symmetry. Sets the AFG ramp symmetry.Number: ramp symmetry in percent
AFG:RAMP:SYMmetry?Query AFG Ramp Symmetry. Returns the AFG ramp symmetry.None
AFG:PULse:WIDth <seconds>Set AFG Pulse Width. Sets the AFG pulse width.Number: pulse width in seconds
AFG:PULse:WIDth?Query AFG Pulse Width. Returns the AFG pulse width.None

HOR subsystem (18)

CommandWhat it doesArguments
HORizontal:SCAle <scale>Set Horizontal Scale. Sets the horizontal time-per-division scale.Number: seconds per division, range per manual HORizontal:SCAle
HORizontal:SCAle?Get Horizontal Scale. Returns the horizontal time-per-division scale.None
HORizontal:RECOrdlength <length>Set Record Length. Sets the record length in points.Number: points, range per manual HORizontal:RECOrdlength
HORizontal:RECOrdlength?Get Record Length. Returns the record length in points.None
HORizontal:SCAle <seconds_per_div>Set Horizontal Scale (HORIZONTAL:SCALE). Sets the horizontal time scale in seconds per division.Number: Seconds per division (NR3), e.g. 20e-9
HORizontal:MODE {AUTO|MANual}Set Horizontal Mode. Sets the horizontal operating mode to automatic or manual.Text: AUTO or MANual
HORizontal:MODE?Query Horizontal Mode. Returns the horizontal operating mode.None
HORizontal:MODE:SAMPLERate <samples_per_second>Set Sample Rate. Sets the sample rate in samples per second.Number: Samples per second (NR1), e.g. 1000000
HORizontal:MODE:SAMPLERate?Query Sample Rate. Returns the sample rate in samples per second.None
HORizontal:MODE:RECOrdlength <samples>Set Record Length (HORIZONTAL:MODE:RECORDLENGTH). Sets the record length in samples (Manual mode only).Number: Record length in samples (NR1)
HORizontal:MODE:RECOrdlength?Query Record Length. Returns the record length in samples.None
HORizontal:DELay:TIMe <seconds>Set Horizontal Delay Time. Sets the horizontal delay time used when delay mode is on.Number: Delay in seconds (NR3)
HORizontal:DELay:TIMe?Query Horizontal Delay Time. Returns the horizontal delay time in seconds.None
HORizontal:SAMPLERate <rate>Set Sample Rate (HORIZONTAL:SAMPLERATE). Sets the horizontal sample rate.Number: sample rate in samples per second
HORizontal:SAMPLERate?Query Sample Rate (HORIZONTAL:SAMPLERATE?). Returns the horizontal sample rate.None
HORizontal:RECOrdlength <points>Set Record Length (HORIZONTAL:RECORDLENGTH). Sets the horizontal record length.Number: record length in points
HORizontal:POSition <percent>Set Horizontal Position. Sets the waveform horizontal position when delay is off.Number: waveform horizontal position in percent
HORizontal:POSition?Query Horizontal Position. Returns the waveform horizontal position in percent.None

DAT subsystem (16)

CommandWhat it doesArguments
DATa:SOUrce <source>Set Data Source. Sets the waveform source for data transfer.Text: waveform source per manual DATa:SOUrce
DATa:SOUrce?Get Data Source. Returns the waveform source for data transfer.None
DATa:ENCdg <encoding>Set Data Encoding. Sets the waveform data encoding format.Text: encoding per manual DATa:ENCdg
DATa:SOUrce <wfm>Set Waveform Data Source. Sets the waveform whose data is transferred by the CURVe? query.Text: Source waveform such as CH1, MATH1 or REF1 (one or more, comma separated)
DATa:SOUrce:AVAILABLE?Query Available Waveform Sources. Returns the source waveforms currently available for CURVe? queries.None
DATa:STARt <start>Set Waveform Data Start Point. Sets the first data point transferred in a waveform transfer.Number: First data point to transfer, from 1 to the record length
DATa:STARt?Query Waveform Data Start Point. Returns the first data point transferred in a waveform transfer.None
DATa:STOP <stop>Set Waveform Data Stop Point. Sets the last data point transferred in a waveform transfer.Number: Last data point to transfer, from 1 to the record length
DATa:STOP?Query Waveform Data Stop Point. Returns the last data point transferred in a waveform transfer.None
DATa:RESample <rate>Set Waveform Data Resample Rate. Sets the resampling of outgoing waveform data.Number: Resampling rate: 1 returns every sample, 2 every other sample, 3 every third, and so on
DATa:RESample?Query Waveform Data Resample Rate. Returns the resampling rate of outgoing waveform data.None
DATa {INIT|SNAp}Set Waveform Data Format Mode. Sets the format and location of the waveform data transferred by CURVe?.Text: INIT (factory defaults) or SNAp (match start and stop to waveform cursors)
DATa?Query Waveform Data Format Mode. Returns the format and location setting of the transferred waveform data.None
DATa:ENCdg?Query Data Encoding. Returns the format of outgoing waveform data.None
DATa:STARt <point>Set Data Start Point. Sets the starting point in waveform transfer.Number: starting data point in waveform transfer
DATa:STOP <point>Set Data Stop Point. Sets the ending data point in waveform transfer.Number: ending data point in waveform transfer

Acquisition (ACQuire) (15)

CommandWhat it doesArguments
ACQuire:STATE <state>Set Acquisition State. Starts or stops acquisition; ON or RUN starts a single-sequence acquisition.Text: ON|RUN|OFF|0|1 (non-zero NR1 also starts)
ACQuire:STATE?Get Acquisition State. Returns the acquisition state.None
ACQuire:STOPAfter <mode>Set Stop After. Sets whether acquisition stops after a single or continuous run.Text: mode per manual ACQuire:STOPAfter
ACQuire:MODe <mode>Set Acquisition Mode. Sets the acquisition mode of the instrument.Text: SAMple, PEAKdetect, HIRes, AVErage, ENVelope
ACQuire:MODe?Query Acquisition Mode. Returns the current acquisition mode.None
ACQuire:NUMAVg <count>Set Number of Averages. Sets the number of waveform acquisitions that make up an averaged waveform.Number: 2 to 10240
ACQuire:NUMAVg?Query Number of Averages. Returns the number of waveform acquisitions in an average.None
ACQuire:NUMACq?Query Number of Acquisitions. Returns the number of acquisitions since the last ACQuire:STATE RUN.None
ACQuire:MAXSamplerate?Query Maximum Sample Rate. Returns the maximum real-time sample rate.None
ACQuire?Query Acquisition State. Queries the current acquisition state.None
ACQuire:STOPAfter?Query Acquisition Stop Mode. Returns whether acquisition is continuous or single sequence.None
ACQuire:SEQuence:NUMSEQuence <count>Set Single Sequence Count. Sets the number of acquisitions that make up a single sequence.Number: number of acquisitions in the single sequence
ACQuire:SEQuence:CURrent?Query Single Sequence Progress. Returns the acquisitions completed so far in a single sequence.None
ACQuire:FASTAcq:STATE <state>Set FastAcq State. Sets the state of fast acquisition mode.Text: ON or OFF
ACQuire:FASTAcq:STATE?Query FastAcq State. Returns the state of fast acquisition mode.None

WFMO subsystem (11)

CommandWhat it doesArguments
WFMOutpre:NR_Pt?Query Waveform Point Count. Returns the number of points transmitted for the DATa:SOUrce waveform.None
WFMOutpre:PT_Off?Query Waveform Trigger Point Offset. Returns the trigger point relative to DATa:STARt for the source waveform.None
WFMOutpre:YMUlt?Query Waveform Vertical Scale Factor. Returns the vertical scale factor per digitizing level for the source waveform.None
WFMOutpre:ENCdg <encoding>Set Waveform Encoding. Sets the encoding of outgoing waveform data.Text: ASCii|BINary
WFMOutpre:ENCdg?Query Waveform Encoding. Returns the encoding of outgoing waveform data.None
WFMOutpre:BN_Fmt <format>Set Waveform Binary Format. Sets the binary data point format for outgoing waveforms.Text: RI|RP|FP
WFMOutpre:BN_Fmt?Query Waveform Binary Format. Returns the binary data point format for outgoing waveforms.None
WFMOutpre?Get Waveform Preamble. Returns the waveform preamble with scaling and format information.None
WFMOutpre:YZEro?Query Waveform Y Zero. Returns the vertical offset for the waveform.None
WFMOutpre:XINcr?Query Waveform X Increment. Returns the horizontal sampling interval.None
WFMOutpre:YUNit?Query Waveform Y Units. Returns the vertical units for the waveform.None

DIA subsystem (9)

CommandWhat it doesArguments
DIAg:MODe {POST|EXTENDED|SERVICE}Set Diagnostics Mode. Sets the diagnostics mode.Text: POST (power-on self test), EXTENDED or SERVICE
DIAg:MODe?Query Diagnostics Mode. Returns the diagnostics mode.None
DIAg:LOOP:OPTion {FAIL|ONCE|ALWAYS|ONFAIL|NTIMES}Set Diagnostics Loop Option. Sets how diagnostics loop.Text: FAIL (run until failure), ONCE, ALWAYS, ONFAIL (loop on failure), NTIMES (run N loops)
DIAg:LOOP:OPTion?Query Diagnostics Loop Option. Returns the diagnostics looping option.None
DIAg:LOOP:OPTion:NTIMes <count>Set Diagnostics Loop Count. Sets how many diagnostics loops to run.Number: Number of loops to run when NTIMES is selected
DIAg:LOOP:OPTion:NTIMes?Query Diagnostics Loop Count. Returns how many diagnostics loops are set to run.None
DIAg:LOOP:STOPStop Diagnostics Loop. Requests that diagnostics stop looping.None
DIAg:RESUlt?Query Diagnostics Result. Returns the overall diagnostics result and the result of each test area.None
DIAg:RESUlt:FLAg?Query Diagnostics Result Flag. Returns the status of the selected diagnostic test area.None

DVM subsystem (9)

CommandWhat it doesArguments
DVM:SOUrce CH<x>Set DVM Source. Sets the channel used as the Digital Voltmeter source (requires DVM option).Text: CH<x>, the channel number to use as DVM source
DVM:SOUrce?Query DVM Source. Returns the channel used as the Digital Voltmeter source.None
DVM:AUTORange {0|1|OFF|ON}Set DVM Autorange. Turns DVM autorange on or off (requires DVM option).Text: 0, 1, OFF or ON
DVM:AUTORange?Query DVM Autorange. Returns the DVM autorange state.None
DVM:MEASUrement:FREQuency?Query DVM Frequency. Returns the current DVM frequency value in Hz (requires DVM option).None
DVM:SOUrce <source>Set DVM Source (DVM:SOURCE). Sets the source for the Digital Voltmeter.Text: source channel name
DVM:MODe <mode>Set DVM Mode. Sets the mode used by the Digital Voltmeter.Text: DVM mode keyword from the manual
DVM:MODe?Query DVM Mode. Returns the Digital Voltmeter mode.None
DVM:MEASUrement:VALue?Read DVM Value. Returns the Digital Voltmeter readout value.None

DIS subsystem (8)

CommandWhat it doesArguments
DISplay:GLObal:CH1:STATE <state>Set Channel Display. Turns the display of channel 1 on or off.Text: ON or OFF
DISplay:GLObal:CH1:STATE?Get Channel Display. Returns whether channel 1 is displayed.None
DISplay:WAVEView1:CH1:STATE <state>Set Channel Display State. Turns the display of Channel 1 on or off in Waveform View 1.Text: ON, OFF, 0 or 1
DISplay:WAVEView1:CH1:STATE?Query Channel Display State. Returns whether Channel 1 is displayed in Waveform View 1.None
DISplay:WAVEView1:CH1:VERTical:SCAle <volts_per_div>Set Vertical Scale (DISPLAY:WAVEVIEW1:CH1:VERTICA…). Sets the vertical scale of Channel 1 in volts per division.Number: Volts per division (NR3), e.g. 2.0e-1
DISplay:WAVEView1:CH1:VERTical:SCAle?Query Vertical Scale (DISPLAY:WAVEVIEW1:CH1:VERTICA…). Returns the vertical scale of Channel 1 in volts per division.None
DISplay:WAVEView<view>:CH<channel>:STATE <state>Set Channel Display State (DISPLAY:WAVEVIEW<VIEW>:CH<CHA…). Turns an analog channel display on or off in a waveform view.Number: waveform view number; Number: channel number 1 to 4; Text: ON or OFF
DISplay:WAVEView<view>:CH<channel>:STATE?Query Channel Display State (DISPLAY:WAVEVIEW<VIEW>:CH<CHA…). Returns the display state of an analog channel in a waveform view.Number: waveform view number; Number: channel number 1 to 4

POW subsystem (5)

CommandWhat it doesArguments
POWer:POWer<pwr>:RESUlts:CURRentacq:VRMS?Query Power Measurement RMS Voltage. Returns the RMS voltage for the power measurement badge.Number: power measurement badge number, positive integer
POWer:POWer<pwr>:RESUlts:CURRentacq:IRMS?Query Power Measurement RMS Current. Returns the RMS current for the power measurement badge.Number: power measurement badge number, positive integer
POWer:POWer<pwr>:RESUlts:CURRentacq:FREQUENCY?Query Power Measurement Frequency. Returns the fundamental frequency for the power measurement badge.Number: power measurement badge number, positive integer
POWer:POWer<pwr>:RESUlts:CURRentacq:TRPWR?Query Power Measurement True Power. Returns the true power value for the power measurement badge.Number: power measurement badge number, positive integer
POWer:POWer<pwr>:AUTOSet EXECuteRun Power Autoset. Executes power autoset for the power measurement badge.Number: power measurement badge number, positive integer

VERT subsystem (3)

CommandWhat it doesArguments
VERTical:DESKEW:STATIC EXECuteStatic Deskew. Executes static deskew using the current deskew settings.None
VERTical:DESKEW:FROM:SOUrce CH<x>Set Deskew From Source. Sets the source channel for channel-to-channel deskew.Text: CH1 to CH4 (analog channels)
VERTical:DESKEW:FROM:SOUrce?Query Deskew From Source. Returns the source channel for channel-to-channel deskew.None

AUTOS subsystem (3)

CommandWhat it doesArguments
AUTOSet EXECuteAutoset (AUTOSET). Runs autoset to configure the display for the input signals.None
AUTOSet:ENAble <state>Set Autoset Enable. Enables or disables the Autoset feature.Text: ON, OFF, 1, 0
AUTOSet:ENAble?Query Autoset Enable. Returns whether the Autoset feature is enabled.None

AUTO subsystem (1)

CommandWhat it doesArguments
AUTOset EXECuteAutoset. Autosets the displayed waveforms.None

EVQ subsystem (1)

CommandWhat it doesArguments
EVQty?Event Queue Count. Returns the number of events in the event queue.None

EVM subsystem (1)

CommandWhat it doesArguments
EVMsg?Event Queue Message. Returns the next event message from the event queue.None

CURV subsystem (1)

CommandWhat it doesArguments
CURVe?Get Waveform Curve. Returns the waveform data points of the selected source.None

ALLE subsystem (1)

CommandWhat it doesArguments
ALLEv?Get All Events. Returns all event messages in the event queue.None

ID subsystem (1)

CommandWhat it doesArguments
ID?Identify Instrument. Returns identifying information about the instrument and firmware, without the serial number.None

FAC subsystem (1)

CommandWhat it doesArguments
FACtoryFactory Reset. Resets the instrument to its factory default settings.None

EVENT subsystem (1)

CommandWhat it doesArguments
EVENT?Query Event Code. Returns the event code of the oldest event in the event queue.None

MATH subsystem (1)

CommandWhat it doesArguments
MATH:MATH<n>:DEFine <expression>Define Math Waveform. Defines a math waveform with a mathematical expression.Number: math waveform number; Text: mathematical expression

CLEAR subsystem (1)

CommandWhat it doesArguments
CLEARClear Measurements. Clears acquisitions, measurements, and waveforms.None

IEEE 488.2 common commands (12)

CommandWhat it doesArguments
*RSTReset Instrument. Resets the instrument to its factory default setup.None
*STB?Read Status Byte. Returns the Status Byte Register contents using the MSS bit.None
*SRE <value>Set Service Request Enable. Sets the bits of the Service Request Enable Register.Number: 0 to 255
*SRE?Query Service Request Enable. Returns the Service Request Enable Register value.None
*WAIWait To Complete. Forces completion of pending OPC-generating commands before later commands run.None
*OPC?Operation Complete Query. Returns 1 once all pending OPC operations have completed.None
*IDN?Identify. Returns the instrument identification string.None
*CLSClear Status. Clears the status byte and event queue.None
*OPCOperation Complete. Sets the operation-complete bit when pending operations finish.None
*ESR?Standard Event Status Register. Returns and clears the standard event status register.None
*ESE <mask>Set Event Status Enable. Sets the bits of the Event Status Enable Register.Number: 0 to 255 (NR1)
*ESE?Query Event Status Enable. Returns the contents of the Event Status Enable Register.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Tektronix's programming documentation for the MSO64B and checked when the agent runs it. The library marks this instrument as supporting *OPC? for operation-complete synchronisation. Ranges, timing, and option-dependent commands are defined by Tektronix's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Tektronix MSO64B support SCPI remote control?

Yes. The Tektronix MSO64B accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 268 SCPI commands for it: 147 queries that read values or state, and 121 settings and actions.

How do I control the Tektronix MSO64B from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, AUTOset EXECute and MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?.

Which command reads a value from the Tektronix MSO64B?

MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN? (get measurement value). Returns the mean of measurement 1 over the current acquisition. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Tektronix MSO64B without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Tektronix MSO64B through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.