In TestFlow's instrument library, the ITECH IT6302 takes 27 SCPI commands, 10 of them queries, and the Rigol DP821 takes 49 SCPI commands, 10 of them queries. That is 22 more on the DP821. Counting distinct command headers (the command path without its arguments), 11 are accepted by both, 7 exist only on the IT6302, and 34 only on the DP821. 61% of the IT6302's command headers also exist on the DP821.
Both libraries have commands under INSTrument, SOURce, MEASure, and SYSTem. Only the DP821 has TRIGger, OUTPut, TIMEr, DELAY, and APPLy.
Only the IT6302 library has an operation-complete command (*OPC?); the DP821 library has none. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the IT6322B and IT6332B the same command set as the IT6302, so the IT6302 column applies to them too. TestFlow's library gives the DP832 and DP832A the same command set as the DP821, so the DP821 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your ITECH IT6302 or Rigol DP821 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.
| ITECH IT6302 | Rigol DP821 | |
|---|---|---|
| Commands in TestFlow's library | 27 | 49 |
| Queries (read a value or state) | 10 | 10 |
| Settings and actions | 17 | 39 |
| Subsystems | 8 | 13 |
| Distinct command headers | 18 | 45 |
| Headers the other lacks | 7 | 34 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | IT6302, IT6322B, IT6332B | DP821, DP832, DP832A |
11 command headers are in both libraries. Where the DP821 library writes the command differently, its form is shown under the IT6302's.
| Command | What it does |
|---|---|
| SOURce:VOLTage <Volt>DP821: :SOURce:VOLTage <Voltage> | Set Voltage. Sets the output voltage of the selected channel in volts. |
| MEASure:VOLTage? | Measure Voltage. Measures the output voltage of the selected channel in volts. |
| SYSTem:ERRor? | Read Error. Reads the first message from the error queue. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| SOURce:VOLTage? | Read Voltage Setting. Reads the set output voltage of the selected channel. |
| MEASure:CURRent? | Measure Current. Measures the output current of the selected channel in amps. |
| *RST | Reset. Resets the instrument to its default state. |
| SOURce:CURRent <Amp>DP821: :SOURce:CURRent <Current> | Set Current. Sets the output current limit of the selected channel in amps. |
| MEASure:POWer? | Measure Power. Measures the output power of the selected channel in watts. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| SOURce:CURRent? | Read Current Setting. Reads the set output current limit of the selected channel. |
7 command headers in the IT6302 library have no match in the DP821 library. Below are 6 of them from the 2 largest subsystems; the full list is in the ITECH IT6302 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. |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| 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. |
34 command headers in the DP821 library have no match in the IT6302 library. Below are 18 of them from the 6 largest subsystems; the full list is in the Rigol DP821 command reference.
| Command | What it does |
|---|---|
| :TRIGger:IN:ENABle <State> | Trigger Input Enable. Enables trigger input |
| :TRIGger:IN:SOURce <Channel> | Trigger Input Source. Selects trigger source |
| :TRIGger:IN:IMMEdiate | Trigger Immediate. Issues immediate trigger |
| :TRIGger:IN:TYPE <Type> | Set Trigger Input Type. Sets trigger condition type |
| Command | What it does |
|---|---|
| :OUTPut ON | Turn On. Turns output ON |
| :OUTPut? | Read Output State. Reads output ON/OFF state |
| :OUTPut:OVP:VALue <Voltage> | Set OVP Level. Sets over-voltage protection level |
| :OUTPut:OVP:STATe <State> | Enable OVP. Enables/disables OVP |
| Command | What it does |
|---|---|
| :DELAY <State> | Enable Delay. Enables or disables delay function |
| :DELAY:ENDState <State> | Set Delay End State. Sets output state after delay completes |
| :DELAY:STOP <Condition>,<Value> | Stop Delay. Stops delay execution |
| Command | What it does |
|---|---|
| :SYSTem:BEEPer <State> | Beeper Control. Enables or disables system beeper |
| :SYSTem:LOCal | Go Local. Returns instrument to local control |
| :SYSTem:REMote | Go Remote. Forces remote control mode |
| Command | What it does |
|---|---|
| :TIMEr <State> | Enable Timer. Enables or disables timer function |
| :TIMEr:CYCLEs <Mode>,<Count> | Set Timer Cycles. Sets number of timer cycles |
| :TIMEr:ENDState <State> | Set Timer End State. Sets output state after timer completes |
| Command | What it does |
|---|---|
| :APPLy <Voltage>,<Current> | Apply VI. Sets voltage and current in one command |
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: INSTrument:SELect CH1 on the IT6302 and :OUTPut ON on the DP821. For the reading, both libraries hold MEASure:VOLTage? (measure voltage), and the same line runs on each. 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_IT6302_ADDRESS") # ITECH IT6302
b = rm.open_resource("PASTE_DP821_ADDRESS") # Rigol DP821
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("INSTrument:SELect CH1") # Select Channel
b.write(":OUTPut ON") # Turn On
# The same reading on both: Measure Voltage
print(a.query("MEASure:VOLTage?"))
print(b.query(":MEASure:VOLTage?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your ITECH IT6302 or Rigol DP821 and writes the report from the measured results.
In TestFlow's library the IT6302 has 27 SCPI commands and the DP821 has 49 SCPI commands. 11 command headers are common to both, 7 are only on the IT6302 (mostly IEEE 488.2 common (*) and INSTrument), and 34 are only on the DP821 (mostly TRIGger and OUTPut).
Partly. 11 command headers are accepted by both, including SOURce:VOLTage, MEASure:VOLTage?, and SYSTem:ERRor?. 41 are not, for example *SAV on the IT6302 and :TRIGger:IN:ENABle on the DP821, so a script that uses those needs a separate branch for each instrument.
The DP821: 27 commands for the IT6302 against 49 for the DP821 in TestFlow's library. Of those, 10 on the IT6302 and 10 on the DP821 are queries that read a value or state, and the library splits them into 8 and 13 subsystems.
Only the IT6302 library has an operation-complete command (*OPC?); the DP821 library has none. 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.