In TestFlow's instrument library, the Keysight 34460A takes 50 SCPI commands, 18 of them queries, and the Rigol DM3068 takes 102 SCPI commands, 35 of them queries. That is 52 more on the DM3068. Counting distinct command headers (the command path without its arguments), 15 are accepted by both, 31 exist only on the 34460A, and 74 only on the DM3068. 33% of the 34460A's command headers also exist on the DM3068.
Both libraries have commands under MEAS, TRIG, and SYST. Only the 34460A has CONF, SENS, DISP, INIT, FETCh, and READ and 1 more. Only the DM3068 has CALCulate, FUNCtion, and RATE.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the 34470A the same command set as the 34460A, so the 34460A column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight 34460A or Rigol DM3068 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 34460A | Rigol DM3068 | |
|---|---|---|
| Commands in TestFlow's library | 50 | 102 |
| Queries (read a value or state) | 18 | 35 |
| Settings and actions | 32 | 67 |
| Subsystems | 14 | 10 |
| Distinct command headers | 46 | 89 |
| Headers the other lacks | 31 | 74 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 34460A, 34470A | DM3068 |
15 command headers are in both libraries. Here are 12, taken across subsystems. Where the DM3068 library writes the command differently, its form is shown under the 34460A's.
| Command | What it does |
|---|---|
| :MEAS:VOLT:DC? <Range>,<Resolution>DM3068: :MEASure:VOLTage:DC? | Measure Voltage DC. Measures DC voltage with specified range and resolution. |
| :TRIG:SOUR <Source>DM3068: :TRIGger:SOURce <Source> | Trigger Source. Sets the trigger source. |
| :SYST:ERR?DM3068: :SYSTem:ERRor? | System Error Query. Queries the next system error in the queue. |
| *RST | Reset. Resets the instrument to its default state. |
| :MEAS:VOLT:AC? <Range>,<Resolution>DM3068: :MEASure:VOLTage:AC? | Measure Voltage AC. Measures AC voltage with specified range and resolution. |
| *CLS | Clear Status. Clears status registers and the error queue. |
| :MEAS:CURR:DC? <Range>,<Resolution>DM3068: :MEASure:CURRent:DC? | Measure Current DC. Measures DC current with specified range and resolution. |
| *IDN? | Identify. Returns the instrument identification information. |
| :MEAS:CURR:AC? <Range>,<Resolution>DM3068: :MEASure:CURRent:AC? | Measure Current AC. Measures AC current with specified range and resolution. |
| *OPC? | Operation Complete Query. Queries if all pending operations are complete. |
| :MEAS:RES? <Range>,<Resolution>DM3068: :MEASure:RESistance? | Measure Resistance 2W. Measures 2-wire resistance with specified range and resolution. |
| *TST? | Self Test. Performs a self-test and returns the result. |
31 command headers in the 34460A library have no match in the DM3068 library. Below are 17 of them from the 6 largest subsystems; the full list is in the Keysight 34460A command reference.
| Command | What it does |
|---|---|
| :CONF:VOLT:DC <Range>,<Resolution> | Configure Voltage DC. Configures DC voltage measurement. |
| :CONF:VOLT:AC <Range>,<Resolution> | Configure Voltage AC. Configures AC voltage measurement. |
| :CONF:CURR:DC <Range>,<Resolution> | Configure Current DC. Configures DC current measurement. |
| :CONF:CURR:AC <Range>,<Resolution> | Configure Current AC. Configures AC current measurement. |
| Command | What it does |
|---|---|
| *ESE <Mask> | Standard Event Enable. Sets the Standard Event Status Enable register mask. |
| *ESE? | Standard Event Enable Query. Queries the Standard Event Status Enable register. |
| *ESR? | Event Status Register Query. Queries the Standard Event Status Register. |
| *OPC | Operation Complete. Sets the Operation Complete flag when pending operations finish. |
| Command | What it does |
|---|---|
| :SENS:FUNC "<Sense>" | Sense function. Selects the measurement function. |
| :SENS:VOLT:DC:RANG <Range> | Sense volt range. Sets the DC voltage measurement range. |
| :SENS:VOLT:DC:RANG:AUTO ON | Volt range auto. Enables automatic voltage range selection. |
| :SENS:VOLT:NPLC <NPLC> | Volt NPLC. Sets the integration time in number of power line cycles. |
| Command | What it does |
|---|---|
| :DISP <ON_OFF> | Display OnOff. Enables or disables the display. |
| :DISP:TEXT "<Message>" | Display Text. Displays a custom message on the screen. |
| :DISP:TEXT:CLE | Display Text Clear. Clears the displayed message. |
| Command | What it does |
|---|---|
| :FETCh? | Fetch Measurement. Returns the last completed measurement. |
| Command | What it does |
|---|---|
| :INIT | Initiate Measurement. Starts the measurement process. |
74 command headers in the DM3068 library have no match in the 34460A library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rigol DM3068 command reference.
| Command | What it does |
|---|---|
| :MEASure:PERiod? | Measure Period. Returns the measured period value in seconds. |
| :MEASure:CONTinuity? | Measure Continuity. Returns the measured resistance value under continuity test in ohms. |
| :MEASure:DIODe? | Measure Diode. Returns the measured forward voltage across the diode in volts. |
| :MEASure:CAPacitance? | Measure Capacitance. Returns the measured capacitance value in farads. |
| Command | What it does |
|---|---|
| :CALCulate:FUNCtion <Function> | Set Math Function. Selects the math operation to apply to the measurement. |
| :CALCulate:STATistic:MIN? | Stat Min. Returns the minimum of the current statistics (MIN operation enabled). |
| :CALCulate:STATistic:MAX? | Stat Max. Returns the maximum of the current statistics (MAX operation enabled). |
| :CALCulate:STATistic:AVERage? | Stat Average. Returns the average of the current statistics (AVERAGE operation enabled). |
| Command | What it does |
|---|---|
| :FUNCtion:VOLTage:DC | Func DCV. Selects DC voltage as the active measurement function. |
| :FUNCtion:VOLTage:AC | Func ACV. Selects AC voltage as the active measurement function. |
| :FUNCtion:CURRent:DC | Func DCI. Selects DC current as the active measurement function. |
| :FUNCtion:CURRent:AC | Func ACI. Selects AC current as the active measurement function. |
| Command | What it does |
|---|---|
| :SYSTem:BEEPer:STATe ON | Beeper On. Turns the beeper on. |
| :SYSTem:BEEPer | Beep. Issues a single beep (beeper must be on). |
| :SYSTem:LANGuage <Language> | Set Language. Sets the system display language. |
| :SYSTem:DISPlay:BRIGht <Value> | Set Display Brightness. Sets the screen brightness (0 to 32). |
| Command | What it does |
|---|---|
| :RATE:VOLTage:DC <Rate> | Set DCV Rate. Sets DC voltage measuring rate: F=Fast, M=Medium, S=Slow. |
| :RATE:VOLTage:AC <Rate> | Set ACV Rate. Sets AC voltage measuring rate: Fast, Medium or Slow. |
| :RATE:CURRent:DC <Rate> | Set DCI Rate. Sets DC current measuring rate: Fast, Medium or Slow. |
| :RATE:CURRent:AC <Rate> | Set ACI Rate. Sets AC current measuring rate: Fast, Medium or Slow. |
| Command | What it does |
|---|---|
| :TRIGger:AUTO:INTErval <Seconds> | Set Auto Trig Interval. Sets the auto-trigger interval in ms (8-2000 depending on rate). |
| :TRIGger:AUTO:HOLD ON | Auto Trig Hold On. Enables the reading-hold function under auto trigger. |
| :TRIGger:SINGle <Count> | Set Single Trig Count. Sets the number of samples per single trigger (1 to 2000). |
| :TRIGger:SINGle:TRIGgered | Single Trigger. Issues one manual single trigger. |
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 :TRIG:SOUR (trigger source); the DM3068 library writes it as :TRIGger:SOURce AUTO. For the reading, both libraries hold :SYST:ERR? (system error query); the DM3068 library writes it as :SYSTem:ERRor?. 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_34460A_ADDRESS") # Keysight 34460A
b = rm.open_resource("PASTE_DM3068_ADDRESS") # Rigol DM3068
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Trigger Source
a.write(":TRIG:SOUR IMM")
b.write(":TRIGger:SOURce AUTO")
# The same reading on both: System Error Query
print(a.query(":SYST:ERR?"))
print(b.query(":SYSTem:ERRor?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight 34460A or Rigol DM3068 and writes the report from the measured results.
In TestFlow's library the 34460A has 50 SCPI commands and the DM3068 has 102 SCPI commands. 15 command headers are common to both, 31 are only on the 34460A (mostly CONF and IEEE 488.2 common (*)), and 74 are only on the DM3068 (mostly MEASure and CALCulate).
Partly. 15 command headers are accepted by both, including :MEAS:VOLT:DC?, :TRIG:SOUR, and :SYST:ERR?. 105 are not, for example :CONF:VOLT:DC on the 34460A and :MEASure:PERiod? on the DM3068, so a script that uses those needs a separate branch for each instrument.
The DM3068: 50 commands for the 34460A against 102 for the DM3068 in TestFlow's library. Of those, 18 on the 34460A and 35 on the DM3068 are queries that read a value or state, and the library splits them into 14 and 10 subsystems.
Both libraries synchronise with *OPC?. Both libraries read errors with 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.