In TestFlow's instrument library, the Keysight EXR104A takes 170 SCPI commands, 60 of them queries, and the Tektronix MSO64B takes 268 SCPI commands, 147 of them queries. That is 98 more on the MSO64B. Counting distinct command headers (the command path without its arguments), 7 are accepted by both, 142 exist only on the EXR104A, and 230 only on the MSO64B. 5% of the EXR104A's command headers also exist on the MSO64B.
Both libraries have commands under MEASure, ACQuire, and TRIGger. Only the EXR104A has CHANnel, WAVeform, FUNCtion, WGEN, TIMebase, and SYSTem and 14 more. Only the MSO64B has MEASUrement, CH1, CH, AFG, HORizontal, and DATa and 17 more.
Both libraries synchronise with *OPC?. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO64B 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 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.
| Keysight EXR104A | Tektronix MSO64B | |
|---|---|---|
| Commands in TestFlow's library | 170 | 268 |
| Queries (read a value or state) | 60 | 147 |
| Settings and actions | 110 | 121 |
| Subsystems | 26 | 25 |
| Distinct command headers | 149 | 237 |
| Headers the other lacks | 142 | 230 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| 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 | MSO64B |
7 command headers are in both libraries.
| 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. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before executing the next command. |
| *ESR? | Get Event Status. Reads and clears the standard event status register. |
| *STB? | Get Status Byte. Reads the status byte register. |
142 command headers in the EXR104A library have no match in the MSO64B 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 |
|---|---|
| :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. |
| Command | What it does |
|---|---|
| :FUNCtion<Math>:DISPlay ON | Math Display On. Turns on the display of the specified math function waveform. |
| :FUNCtion<Math>:ADD <Source_1>,<Source_2> | Math Add. Defines the math function as the algebraic sum of the two operands. |
| :FUNCtion<Math>:SUBTract <Source_1>,<Source_2> | Math Subtract. Defines the math function as the algebraic difference of the two operands. |
| :FUNCtion<Math>:MULTiply <Source_1>,<Source_2> | Math Multiply. Defines the math function as the product of the two operands. |
230 command headers in the MSO64B 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 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 <mode> | Set Trigger Mode. Sets the A trigger mode. |
| 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. |
| 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 |
|---|---|
| AFG:OUTPut:STATE <state> | Set AFG Output State. Turns the AFG output on or off; requires option AFG. |
| AFG:OUTPut:STATE? | Query AFG Output State. Returns the AFG output state; requires option AFG. |
| AFG:FUNCtion <function> | Set AFG Function. Sets the AFG function to execute; requires option AFG. |
| AFG:FUNCtion? | Query AFG Function. Returns the AFG function; requires option AFG. |
| 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:STOPAfter <mode> | Set Stop After. Sets whether acquisition stops after a single or continuous run. |
| ACQuire:MODe <mode> | Set Acquisition Mode. Sets the acquisition mode of the instrument. |
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 AUTOset EXECute on the MSO64B. 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 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_EXR104A_ADDRESS") # Keysight EXR104A
b = rm.open_resource("PASTE_MSO64B_ADDRESS") # Tektronix MSO64B
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("AUTOset EXECute") # Autoset
# 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("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 Keysight EXR104A or Tektronix MSO64B and writes the report from the measured results.
In TestFlow's library the EXR104A has 170 SCPI commands and the MSO64B has 268 SCPI commands. 7 command headers are common to both, 142 are only on the EXR104A (mostly MEASure and CHANnel), and 230 are only on the MSO64B (mostly MEASUrement and TRIGger).
Partly. 7 command headers are accepted by both. 372 are not, for example :MEASure:SOURce on the EXR104A and MEASUrement:ADDMEAS on the MSO64B, so a script that uses those needs a separate branch for each instrument.
The MSO64B: 170 commands for the EXR104A against 268 for the MSO64B in TestFlow's library. Of those, 60 on the EXR104A and 147 on the MSO64B are queries that read a value or state, and the library splits them into 26 and 25 subsystems.
Both libraries synchronise with *OPC?. Only the EXR104A library has an error-queue read (SYSTem:ERRor?); the MSO64B 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.