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?.
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.
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 MSO54B | Tektronix MSO64B | |
|---|---|---|
| Commands in TestFlow's library | 70 | 268 |
| Queries (read a value or state) | 7 | 147 |
| Settings and actions | 63 | 121 |
| Subsystems | 17 | 25 |
| Distinct command headers | 49 | 237 |
| Headers the other lacks | 36 | 224 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | Not in library |
| Models on this command set | MSO54B | MSO64B |
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.
| Command | What 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. |
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.
| Command | What it does |
|---|---|
| AFG:ARBitrary:SOUrce <Source_path> | AFG source. |
| AFG:BURSt:CCOUnt <Cycles_count> | AFG cycles count. |
| AFG:BURSt:TRIGger | AFG burst. |
| AFG:NOISEAdd:PERCent <Percentage> ; ... | AFG Noise. |
| Command | What 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. |
| Command | What it does |
|---|---|
| CURSor:SOUrce <Channel> | Cursor channel. |
| CURSor:FUNCtion WAVEFORM | Cursers ON. |
| CURSor:DDT? | Cursers dV/dT. |
| CURSor:HBArs:DELTa? | Cursor dV. |
| Command | What 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 ON | Bits ON. |
| DISplay:GLObal:CH<Digital Channel>:STATE <State> | D channel display. |
| Command | What it does |
|---|---|
| MEASUrement:IMMed:SOUrce <Channel> ; ... | Measurement. |
| MEASUrement:IMMed:TYPe <Measurement> | Measurement Type. |
| MEASUrement:IMMed:VALue? | Measure. |
| MEASUrement:IMMed:DELay:EDGE1 <Edge> ; ... | Measure delay. |
| Command | What 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. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.