In TestFlow's instrument library, the Aim-TTi CPX400DP takes 33 SCPI commands, 16 of them queries, and the B&K Precision 1670A takes 27 SCPI commands, 10 of them queries. That is 6 more on the CPX400DP. Counting distinct command headers (the command path without its arguments), 2 are accepted by both, 26 exist only on the CPX400DP, and 17 only on the 1670A. 7% of the CPX400DP's command headers also exist on the 1670A.
Only the CPX400DP has OP1, OP2, V1, V2, V1O, and V2O and 10 more. Only the 1670A has APPLy, SOURce, MEASure, INSTrument, and SYSTem.
Both libraries synchronise with *OPC?. Only the 1670A library has an error-queue read (SYSTem:ERRor?); the CPX400DP library has none.
TestFlow's library gives the MX100QP, MX100TP, MX103QP, MX180TP, PL303QMDP, PL303QMTP, QL355TP, QL564TP, and QPX600DP the same command set as the CPX400DP, so the CPX400DP column applies to them too. TestFlow's library gives the 1671A and 1672A the same command set as the 1670A, so the 1670A column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi CPX400DP or B&K Precision 1670A 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.
| Aim-TTi CPX400DP | B&K Precision 1670A | |
|---|---|---|
| Commands in TestFlow's library | 33 | 27 |
| Queries (read a value or state) | 16 | 10 |
| Settings and actions | 17 | 17 |
| Subsystems | 11 | 9 |
| Distinct command headers | 28 | 19 |
| Headers the other lacks | 26 | 17 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | Not in library | SYSTem:ERRor? |
| Models on this command set | CPX400DP, MX100QP, MX100TP, MX103QP, MX180TP, PL303QMDP, PL303QMTP, QL355TP, QL564TP, QPX600DP | 1670A, 1671A, 1672A |
2 command headers are in both libraries.
| Command | What it does |
|---|---|
| *IDN? | Identify. Returns instrument identification string (manufacturer model serial firmware) |
| *RST | Reset. Resets the instrument to factory default settings |
26 command headers in the CPX400DP library have no match in the 1670A library. Below are 12 of them from the 6 largest subsystems; the full list is in the Aim-TTi CPX400DP command reference.
| Command | What it does |
|---|---|
| I1 <Amp> | Set Current Ch1. Sets the current limit on channel 1 in Amps (0 to 20A, resolution 1mA) |
| I1? | Read Set Current Ch1. Returns the set current limit of channel 1 in Amps |
| Command | What it does |
|---|---|
| I2 <Amp> | Set Current Ch2. Sets the current limit on channel 2 in Amps (0 to 20A, resolution 1mA) |
| I2? | Read Set Current Ch2. Returns the set current limit of channel 2 in Amps |
| Command | What it does |
|---|---|
| OCP1 <Amp> | Set OCP Ch1. Sets the over-current protection trip level on channel 1 in Amps (resolution 10mA) |
| OCP1? | Read OCP Ch1. Returns the set OCP level of channel 1 in Amps |
| Command | What it does |
|---|---|
| OCP2 <Amp> | Set OCP Ch2. Sets the over-current protection trip level on channel 2 in Amps (resolution 10mA) |
| OCP2? | Read OCP Ch2. Returns the set OCP level of channel 2 in Amps |
| Command | What it does |
|---|---|
| OP1 1 | Turn On Ch1. Turns on output channel 1 |
| OP1? | Read State Ch1. Returns the output state of channel 1 (1=ON 0=OFF) |
| Command | What it does |
|---|---|
| OP2 1 | Turn On Ch2. Turns on output channel 2 |
| OP2? | Read State Ch2. Returns the output state of channel 2 (1=ON 0=OFF) |
17 command headers in the 1670A library have no match in the CPX400DP library. Below are 15 of them from the 6 largest subsystems; the full list is in the B&K Precision 1670A command reference.
| Command | What it does |
|---|---|
| *SAV <Slot> | Save State. Saves the current instrument state to the specified storage slot. |
| *RCL <Slot> | Recall State. Recalls an instrument state from the specified storage slot. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
| Command | What it does |
|---|---|
| SOURce:VOLTage <Volt> | Set Voltage. Sets the output voltage of the selected channel in volts. |
| SOURce:VOLTage? | Read Voltage Setting. Reads the set output voltage of the selected channel. |
| SOURce:CURRent <Amp> | Set Current. Sets the output current limit of the selected channel in amps. |
| SOURce:CURRent? | Read Current Setting. Reads the set output current limit of the selected channel. |
| Command | What it does |
|---|---|
| MEASure:VOLTage? | Measure Voltage. Measures the output voltage of the selected channel in volts. |
| MEASure:CURRent? | Measure Current. Measures the output current of the selected channel in amps. |
| MEASure:POWer? | Measure Power. Measures the output power of the selected channel in watts. |
| Command | What it does |
|---|---|
| INSTrument:SELect <Channel> | Select Channel. Selects the active channel for subsequent commands. |
| INSTrument:SELect? | Read Selected Channel. Reads which channel is currently selected. |
| Command | What it does |
|---|---|
| APPLy CH1,ON | Turn On CH1. Enables the output of channel 1. |
| Command | What it does |
|---|---|
| SYSTem:ERRor? | Read Error. Reads the first message from the error queue. |
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: OP1 1 on the CPX400DP and INSTrument:SELect CH1 on the 1670A. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: OP1? on the CPX400DP and MEASure:VOLTage? on the 1670A. 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_CPX400DP_ADDRESS") # Aim-TTi CPX400DP
b = rm.open_resource("PASTE_1670A_ADDRESS") # B&K Precision 1670A
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("OP1 1") # Turn On Ch1
b.write("INSTrument:SELect CH1") # Select Channel
# No shared reading with an example on both, so each uses its own command
print(a.query("OP1?")) # Read State Ch1
print(b.query("MEASure:VOLTage?")) # Measure Voltage
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi CPX400DP or B&K Precision 1670A and writes the report from the measured results.
In TestFlow's library the CPX400DP has 33 SCPI commands and the 1670A has 27 SCPI commands. 2 command headers are common to both, 26 are only on the CPX400DP (mostly I1 and I2), and 17 are only on the 1670A (mostly IEEE 488.2 common (*) and SOURce).
Partly. 2 command headers are accepted by both. 43 are not, for example I1 on the CPX400DP and *SAV on the 1670A, so a script that uses those needs a separate branch for each instrument.
The CPX400DP: 33 commands for the CPX400DP against 27 for the 1670A in TestFlow's library. Of those, 16 on the CPX400DP and 10 on the 1670A are queries that read a value or state, and the library splits them into 11 and 9 subsystems.
Both libraries synchronise with *OPC?. Only the 1670A library has an error-queue read (SYSTem:ERRor?); the CPX400DP 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.