In TestFlow's instrument library, the Keysight EXR104A takes 170 SCPI commands, 60 of them queries, and the Tektronix MSO54B takes 70 SCPI commands, 7 of them queries. That is 100 more on the EXR104A. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 149 exist only on the EXR104A, and 49 only on the MSO54B. None of the EXR104A's command headers appears in the MSO54B library, so a script written for one needs every command rewritten for the other.
Both libraries have commands under ACQuire and TRIGger. Only the EXR104A has MEASure, CHANnel, WAVeform, FUNCtion, WGEN, and TIMebase and 15 more. Only the MSO54B has AFG, DISplay, CURSor, MEASUrement, CH<Digital, and SEARCH and 5 more.
Only the EXR104A library has an operation-complete command (*OPC?); the MSO54B library has none. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO54B library has none.
TestFlow's library gives the EXR108A, EXR204A, EXR208A, EXR254A, EXR258A, EXR404A, EXR408A, EXR604A, EXR608A, MXR054A, MXR058A, MXR104A, MXR108A, MXR204A, MXR208A, MXR254A, MXR258A, MXR404A, MXR408A, MXR604A, and MXR608A the same command set as the EXR104A, so the EXR104A column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight EXR104A or Tektronix MSO54B 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.
| Keysight EXR104A | Tektronix MSO54B | |
|---|---|---|
| Commands in TestFlow's library | 170 | 70 |
| Queries (read a value or state) | 60 | 7 |
| Settings and actions | 110 | 63 |
| Subsystems | 26 | 17 |
| Distinct command headers | 149 | 49 |
| Headers the other lacks | 149 | 49 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | EXR104A, EXR108A, EXR204A, EXR208A, EXR254A, EXR258A, EXR404A, EXR408A, EXR604A, EXR608A, MXR054A, MXR058A, MXR104A, MXR108A, MXR204A, MXR208A, MXR254A, MXR258A, MXR404A, MXR408A, MXR604A, MXR608A | MSO54B |
None. No command header in TestFlow's EXR104A library matches one in its MSO54B library, so every command needs its own version for each instrument.
149 command headers in the EXR104A library have no match in the MSO54B library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight EXR104A command reference.
| Command | What it does |
|---|---|
| :MEASure:SOURce <Source> | Measure Source. Selects the source used by subsequent measurement commands. |
| :MEASure:SOURce? | Get Measure Source. Queries the source currently selected for measurements. |
| :MEASure:VPP? <Source> | Measure Vpp. Measures the peak-to-peak voltage of the selected source. |
| :MEASure:VMAX? <Source> | Measure Vmax. Measures the maximum voltage of the selected source. |
| Command | What it does |
|---|---|
| :CHANnel<Channel>:DISPlay ON | Channel On. Turns on the display of the specified analog channel. |
| :CHANnel<Channel>:DISPlay? | Get Channel State. Queries whether the specified analog channel is displayed (1) or not (0). |
| :CHANnel<Channel>:INPut <Input> | Channel Input. Selects the input coupling and impedance of the specified analog channel. |
| :CHANnel<Channel>:INPut? | Get Channel Input. Queries the input coupling and impedance of the specified analog channel. |
| Command | What it does |
|---|---|
| :ACQuire:AVERage ON | Averaging On. Enables waveform averaging over multiple acquisitions. |
| :ACQuire:AVERage:COUNt <Count> | Average Count. Sets the number of acquisitions averaged together when averaging is enabled. |
| :ACQuire:AVERage:COUNt? | Get Average Count. Queries the number of averages currently configured. |
| :ACQuire:MODE <Mode> | Acquire Mode. Sets the sampling and acquisition mode of the oscilloscope. |
| Command | What it does |
|---|---|
| :WAVeform:SOURce <Source> | Waveform Source. Selects the source of the waveform data read back over the bus. |
| :WAVeform:FORMat <Format> | Waveform Format. Sets the data transmission format of the waveform data. |
| :WAVeform:BYTeorder <Order> | Waveform Byte Order. Sets whether the least or most significant byte is transmitted first for multi-byte data. |
| :WAVeform:VIEW <View> | Waveform View. Selects how much of the acquisition record is returned by the waveform data query. |
| Command | What it does |
|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial number, firmware version). |
| *RST | Reset. Restores the oscilloscope to its factory default state. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| *TST? | Self Test. Runs the internal self-test and returns 0 for pass or a non-zero code for failure. |
| Command | What it does |
|---|---|
| :TRIGger:SWEep <Sweep> | Trigger Sweep. Selects auto or triggered sweep mode. |
| :TRIGger:SWEep? | Get Trigger Sweep. Queries the current trigger sweep mode. |
| :TRIGger:MODE <Mode> | Trigger Mode. Selects the trigger type used by the oscilloscope. |
| :TRIGger:MODE? | Get Trigger Mode. Queries the currently selected trigger type. |
49 command headers in the MSO54B library have no match in the EXR104A 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:AMPLitude <Voltage> | AFG Amplitude. |
| AFG:ARBitrary:SOUrce <Source_path> | AFG source. |
| AFG:BURSt:CCOUnt <Cycles_count> | AFG cycles count. |
| AFG:BURSt:TRIGger | AFG burst. |
| Command | What it does |
|---|---|
| TRIGger:A:EDGE:SLOpe <Slope> | Trigget slope. |
| TRIGger:A:EDGE:COUPling <Coupling> | Trigger coupling. |
| TRIGger:A:LEVel:<Channel> <Volt> | Trigger level. |
| TRIGger:A:TYPe LOGIc ; ... | D trigger condition. |
| 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. |
With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, the two libraries have no common command with a worked example on both, so each instrument uses its own: :AUToscale on the EXR104A and ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto on the MSO54B. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: :MEASure:RESults? on the EXR104A and Set? on the MSO54B. 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_EXR104A_ADDRESS") # Keysight EXR104A
b = rm.open_resource("PASTE_MSO54B_ADDRESS") # Tektronix MSO54B
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# No shared setting with an example on both, so each uses its own command
a.write(":AUToscale") # Auto Scale
b.write("ACQuire:STOPAfter RUNSTop ;STATE RUN ;:DISplay:PERSistence Auto") # RUN
# No shared reading with an example on both, so each uses its own command
print(a.query(":MEASure:RESults?")) # Get Measure Results
print(b.query("Set?")) # Get settings
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight EXR104A or Tektronix MSO54B and writes the report from the measured results.
In TestFlow's library the EXR104A has 170 SCPI commands and the MSO54B has 70 SCPI commands. 0 command headers are common to both, 149 are only on the EXR104A (mostly MEASure and CHANnel), and 49 are only on the MSO54B (mostly AFG and TRIGger).
Not without changes. None of the 149 command headers in the EXR104A library matches one of the 49 in the MSO54B library: the EXR104A uses commands such as :MEASure:SOURce and the MSO54B uses commands such as AFG:AMPLitude. PyVISA opens both the same way, but each command needs its own version for each instrument.
The EXR104A: 170 commands for the EXR104A against 70 for the MSO54B in TestFlow's library. Of those, 60 on the EXR104A and 7 on the MSO54B are queries that read a value or state, and the library splits them into 26 and 17 subsystems.
Only the EXR104A library has an operation-complete command (*OPC?); the MSO54B library has none. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO54B library has none. 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.