Oscilloscope · SCPI command comparison

Tektronix MSO54B vs MSO64B: SCPI commands and remote control compared

In TestFlow's instrument library, the Tektronix MSO54B takes 70 SCPI commands, 7 of them queries, and the Tektronix MSO64B takes 268 SCPI commands, 147 of them queries. That is 198 more on the MSO64B. Counting distinct command headers (the command path without its arguments), 13 are accepted by both, 36 exist only on the MSO54B, and 224 only on the MSO64B. 27% of the MSO54B's command headers also exist on the MSO64B.

Both libraries have commands under AFG, DISplay, TRIGger, MEASUrement, CH<Digital, ACQuire, and HORIZONTAL. Only the MSO54B has CURSor, SEARCH, SELect, SAVe, Set, and DIGGRP<Digital. Only the MSO64B has MEASU, CH1, DATa, WFMOutpre, DIAg, and DVM and 13 more.

Only the MSO64B library has an operation-complete command (*OPC?); the MSO54B library has none. Neither library has an error-queue read such as SYSTem:ERRor?.

MSO54B commands
70
MSO64B commands
268
Shared headers
13
Unique headers
260

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Tektronix MSO54B or Tektronix MSO64B and writes the report from the measured results.

Get started

MSO54B vs MSO64B at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Tektronix MSO54BTektronix MSO64B
Commands in TestFlow's library70268
Queries (read a value or state)7147
Settings and actions63121
Subsystems1725
Distinct command headers49237
Headers the other lacks36224
Command languageSCPISCPI
Operation completeNot in library*OPC?
Error queueNot in libraryNot in library
Models on this command setMSO54BMSO64B

Commands both accept

13 command headers are in both libraries. Here are 12, taken across subsystems. Where the MSO64B library writes the command differently, its form is shown under the MSO54B's.

CommandWhat it does
AFG:AMPLitude <Voltage>MSO64B: AFG:AMPLitude <amplitude>AFG Amplitude.
TRIGger:A:EDGE:SLOpe <Slope>Trigget slope.
ACQuire:STOPAfter SEQuence ; ...MSO64B: ACQuire:STOPAfter <mode>Single seq.
HORIZONTAL:POSITION <Position>MSO64B: HORizontal:POSition <percent>Time position.
AFG:FUNCtion <Function>AFG function.
TRIGger:A:MODe <Mode>D trigger mode.
AFG:FREQuency <Frequency>AFG frequency.
AFG:HIGHLevel <Voltage>MSO64B: AFG:HIGHLevel <volts>AFG High LVL.
AFG:LOWLevel <Voltage>MSO64B: AFG:LOWLevel <volts>AFG Low LVL.
AFG:OFFSet <Offset>AFG offset.
AFG:OUTPut:STATE ONMSO64B: AFG:OUTPut:STATE <state>AFG turn On.
AFG:PULse:WIDth <Width>MSO64B: AFG:PULse:WIDth <seconds>AFG width.

Only on the Tektronix MSO54B

36 command headers in the MSO54B library have no match in the MSO64B library. Below are 24 of them from the 6 largest subsystems; the full list is in the Tektronix MSO54B command reference.

AFG (7 only on the MSO54B)

CommandWhat it does
AFG:ARBitrary:SOUrce <Source_path>AFG source.
AFG:BURSt:CCOUnt <Cycles_count>AFG cycles count.
AFG:BURSt:TRIGgerAFG burst.
AFG:NOISEAdd:PERCent <Percentage> ; ...AFG Noise.

TRIGger (6 only on the MSO54B)

CommandWhat it does
TRIGger:A:EDGE:COUPling <Coupling>Trigger coupling.
TRIGger:A:LEVel:<Channel> <Volt>Trigger level.
TRIGger:A:TYPe LOGIc ; ...D trigger condition.
TRIGger:A:LOGIc:POLarity <Polarity>D trigger polarity.

CURSor (5 only on the MSO54B)

CommandWhat it does
CURSor:SOUrce <Channel>Cursor channel.
CURSor:FUNCtion WAVEFORMCursers ON.
CURSor:DDT?Cursers dV/dT.
CURSor:HBArs:DELTa?Cursor dV.

DISplay (4 only on the MSO54B)

CommandWhat it does
DISplay:WAVEView1:CURSor:CURSOR1:MODe <Mode>Cursor mode.
DISplay:WAVEView1:CURSor:CURSOR1:VBArs:DELTa?Cursor dT.
DISplay:WAVEView1:CH<Digital Channel>_DALL:STATE ONBits ON.
DISplay:GLObal:CH<Digital Channel>:STATE <State>D channel display.

MEASUrement (4 only on the MSO54B)

CommandWhat it does
MEASUrement:IMMed:SOUrce <Channel> ; ...Measurement.
MEASUrement:IMMed:TYPe <Measurement>Measurement Type.
MEASUrement:IMMed:VALue?Measure.
MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ...Measure delay.

SEARCH (4 only on the MSO54B)

CommandWhat it does
SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:LOGICPattern:CH<Digital Bit> <State>Search pattern.
SEARCH:SEARCH<Search>:TRIGger:A:LOGIc:WHEn <Condition>Search condition.
SEARCH:SEARCH<Search>:TRIGger:A:PULSEWidth:HIGHLimit <Width>Search puls width.
SEARCH:SEARCH<Search>:TRIGger:A:TIMEOut:TIMe <Time>Search TIMEOUT.

Only on the Tektronix MSO64B

224 command headers in the MSO64B library have no match in the MSO54B library. Below are 24 of them from the 6 largest subsystems; the full list is in the Tektronix MSO64B command reference.

MEASUrement (35 only on the MSO64B)

CommandWhat it does
MEASUrement:ADDMEAS <type>Add Measurement. Adds a measurement to the measurement table.
MEASUrement:MEAS1:TYPe <type>Set Measurement Type. Sets the type of measurement 1.
MEASUrement:MEAS1:TYPe?Get Measurement Type. Returns the type of measurement 1.
MEASUrement:MEAS1:SOUrce <source>Set Measurement Source. Sets the source waveform of measurement 1.

TRIGger (33 only on the MSO64B)

CommandWhat it does
TRIGger:A:MODe?Query Trigger Mode. Returns the A trigger mode.
TRIGger:A:HOLDoff:BY <mode>Set Holdoff By. Selects how the A trigger holdoff is set.
TRIGger:A:HOLDoff:BY?Query Holdoff By. Returns how the A trigger holdoff is set.
TRIGger:A:HOLDoff:TIMe <time>Set Holdoff Time. Sets the A trigger holdoff time.

CH (27 only on the MSO64B)

CommandWhat it does
CH<x>:SCAle <scale>Set Vertical Scale (CH<X>:SCALE). Sets the vertical scale of the specified analog channel.
CH<x>:SCAle?Query Vertical Scale. Returns the vertical scale of the specified analog channel.
CH<x>:TERmination <resistance>Set Input Termination. Sets the vertical termination of the specified analog channel.
CH<x>:TERmination?Query Input Termination. Returns the vertical termination of the specified analog channel.

HORizontal (15 only on the MSO64B)

CommandWhat it does
HORizontal:SCAle <scale>Set Horizontal Scale. Sets the horizontal time-per-division scale.
HORizontal:SCAle?Get Horizontal Scale. Returns the horizontal time-per-division scale.
HORizontal:RECOrdlength <length>Set Record Length. Sets the record length in points.
HORizontal:RECOrdlength?Get Record Length. Returns the record length in points.

ACQuire (14 only on the MSO64B)

CommandWhat it does
ACQuire:STATE <state>Set Acquisition State. Starts or stops acquisition; ON or RUN starts a single-sequence acquisition.
ACQuire:STATE?Get Acquisition State. Returns the acquisition state.
ACQuire:MODe <mode>Set Acquisition Mode. Sets the acquisition mode of the instrument.
ACQuire:MODe?Query Acquisition Mode. Returns the current acquisition mode.

DATa (13 only on the MSO64B)

CommandWhat it does
DATa:SOUrce <source>Set Data Source. Sets the waveform source for data transfer.
DATa:SOUrce?Get Data Source. Returns the waveform source for data transfer.
DATa:ENCdg <encoding>Set Data Encoding. Sets the waveform data encoding format.
DATa:SOUrce:AVAILABLE?Query Available Waveform Sources. Returns the source waveforms currently available for CURVe? queries.

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold AFG:FUNCtion (afg function), and the same line runs on each. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: Set? on the MSO54B and MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN? on the MSO64B. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_MSO54B_ADDRESS")  # Tektronix MSO54B
b = rm.open_resource("PASTE_MSO64B_ADDRESS")  # Tektronix MSO64B
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: AFG function
a.write("AFG:FUNCtion SINE")
b.write("AFG:FUNCtion SINE")

# No shared reading with an example on both, so each uses its own command
print(a.query("Set?"))  # Get settings
print(b.query("MEASUrement:MEAS1:RESUlts:CURRentacq:MEAN?"))  # Get Measurement Value

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Tektronix MSO54B or Tektronix MSO64B and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Tektronix MSO54B and the Tektronix MSO64B for remote control?

In TestFlow's library the MSO54B has 70 SCPI commands and the MSO64B has 268 SCPI commands. 13 command headers are common to both, 36 are only on the MSO54B (mostly AFG and TRIGger), and 224 are only on the MSO64B (mostly MEASUrement and TRIGger).

Can I use the same SCPI code for the Tektronix MSO54B and the Tektronix MSO64B?

Partly. 13 command headers are accepted by both, including AFG:AMPLitude, TRIGger:A:EDGE:SLOpe, and ACQuire:STOPAfter. 260 are not, for example AFG:ARBitrary:SOUrce on the MSO54B and MEASUrement:ADDMEAS on the MSO64B, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the MSO54B or the MSO64B?

The MSO64B: 70 commands for the MSO54B against 268 for the MSO64B in TestFlow's library. Of those, 7 on the MSO54B and 147 on the MSO64B are queries that read a value or state, and the library splits them into 17 and 25 subsystems.

How do the MSO54B and MSO64B signal operation complete and report errors?

Only the MSO64B library has an operation-complete command (*OPC?); the MSO54B library has none. Neither library has an error-queue read such as SYSTem:ERRor?. Each command named here is listed in the tables on this page and on each instrument's command reference.

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.