In TestFlow's instrument library, the Chroma 63102A takes 31 SCPI commands, 2 of them queries, and the Keysight N6792A takes 157 SCPI commands, 38 of them queries. That is 126 more on the N6792A. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 25 exist only on the 63102A, and 133 only on the N6792A. None of the 63102A's command headers appears in the N6792A library, so a script written for one needs every command rewritten for the other.
Both libraries have commands under MEAS. Only the 63102A has CURR, VOLT, RES, CONFigure, LOAD, and MODE and 1 more. Only the N6792A has SOURce, OUTPut, SENSe, TRIGger, FETCh, and SYSTem and 5 more.
Only the N6792A library has an operation-complete command (*OPC?); the 63102A library has none. Only the N6792A library has an error-queue read (SYSTem:ERRor?); the 63102A library has none.
TestFlow's library gives the 63103A, 63105A, 63106A, 63107A, 63108A, 63110A, 63112A, 63113A, 63123A, and 6314A the same command set as the 63102A, so the 63102A column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Chroma 63102A or Keysight N6792A 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.
| Chroma 63102A | Keysight N6792A | |
|---|---|---|
| Commands in TestFlow's library | 31 | 157 |
| Queries (read a value or state) | 2 | 38 |
| Settings and actions | 29 | 119 |
| Subsystems | 11 | 16 |
| Distinct command headers | 25 | 133 |
| Headers the other lacks | 25 | 133 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | Not in library | SYSTem:ERRor? |
| Models on this command set | 63102A, 63103A, 63105A, 63106A, 63107A, 63108A, 63110A, 63112A, 63113A, 63123A, 6314A | N6792A |
None. No command header in TestFlow's 63102A library matches one in its N6792A library, so every command needs its own version for each instrument.
25 command headers in the 63102A library have no match in the N6792A library. Below are 17 of them from the 6 largest subsystems; the full list is in the Chroma 63102A command reference.
| Command | What it does |
|---|---|
| CURR:STAT:L1 <Amp> | Static Current low. Sets the static current lower value |
| CURR:STAT:L2 <Amp> | Static Current High. Sets the static current higher value (Always set low and high) |
| CURR:STAT:RISE <Slew> | Current rise slew. Sets the current rising slew rate |
| CURR:STAT:FALL <Slew> | Current fall slew. Sets the current falling slew rate |
| Command | What it does |
|---|---|
| RES:L1 <OHM> OHM | Resistance low. Sets the lower value of dynamic resistive load |
| RES:L2 <OHM> OHM | Resistance high. Sets the higher value of dynamic resistive load (Set low and high for constant) |
| RES:RISE <Slew> | Resistance rise. Sets resistive load rise |
| RES:FALL <Slew> | Resistance fall. Sets resistive load fall |
| Command | What it does |
|---|---|
| VOLT:L1 <Volt>V | Static voltage low. Sets the lower value of CV mode |
| VOLT:L2 <Volt>V | Static voltave high. Sets the higher value of the CV mode |
| VOLTage:CURRent <Amp> | Static voltage current limit. Sets the current limit |
| VOLT:MODE FAST | Voltage fast. Sets voltage fast mode |
| Command | What it does |
|---|---|
| :CONFigure:REMote ON | Remote control. Sets control to remote |
| CONF:VOLT:LATC ON | Voltage latch ON. Enables voltage latch |
| Command | What it does |
|---|---|
| MEAS:VOLT? | Measure voltage. Measures the voltage |
| MEAS:CURR? | Measure current. Measures the current |
| Command | What it does |
|---|---|
| CHANnel <Channel> | Channel select. Selects the channel |
133 command headers in the N6792A library have no match in the 63102A library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight N6792A command reference.
| Command | What it does |
|---|---|
| SOURce:FUNCtion <Mode>,(@<Channel>) | Set Priority Mode. Selects constant current, constant voltage, constant power or constant resistance load priority mode. |
| SOURce:VOLTage <Volt>,(@<Channel>) | Set Voltage. Sets the regulated input voltage in volts (programming range up to 61.2 V). |
| SOURce:VOLTage? (@<Channel>) | Read Voltage Setting. Reads the programmed voltage setting of the selected channel. |
| SOURce:CURRent <Amp>,(@<Channel>) | Set Current. Sets the sink current in amps (programming range up to 40.8 A). |
| Command | What it does |
|---|---|
| OUTPut ON,(@<Channel>) | Turn On. Enables the load input of the N6792A module in the selected mainframe channel. |
| OUTPut? (@<Channel>) | Read Output State. Reads whether the selected channel load input is ON (1) or OFF (0). |
| OUTPut:DELay:RISE <Seconds>,(@<Channel>) | Set Turn On Delay. Sets the turn-on sequence delay in seconds for the selected channel. |
| OUTPut:DELay:FALL <Seconds>,(@<Channel>) | Set Turn Off Delay. Sets the turn-off sequence delay in seconds for the selected channel. |
| Command | What it does |
|---|---|
| MEASure:VOLTage:DC? (@<Channel>) | Measure Voltage. Takes a measurement and returns the average voltage in volts. |
| MEASure:CURRent:DC? (@<Channel>) | Measure Current. Takes a measurement and returns the average current in amps. |
| MEASure:POWer:DC? (@<Channel>) | Measure Power. Takes a measurement and returns the average power in watts. |
| MEASure:VOLTage:MAXimum? (@<Channel>) | Measure Voltage Max. Takes a measurement and returns the maximum voltage of the acquisition. |
| Command | What it does |
|---|---|
| SENSe:FUNCtion:VOLTage ON,(@<Channel>) | Enable Voltage Measure Function. Enables the voltage measurement function for triggered data acquisitions. |
| SENSe:FUNCtion:CURRent ON,(@<Channel>) | Enable Current Measure Function. Enables the current measurement function for triggered data acquisitions. |
| SENSe:SWEep:TINTerval <Seconds>,(@<Channel>) | Set Sample Interval. Sets the digitizer sample interval in seconds. |
| SENSe:SWEep:POINts <Points>,(@<Channel>) | Set Sample Points. Sets the number of data points in a measurement sweep. |
| Command | What it does |
|---|---|
| TRIGger:ACQuire:SOURce <Source>,(@<Channel>) | Set Acquire Trigger Source. Selects the measurement trigger source. |
| TRIGger:ACQuire:VOLTage <Volt>,(@<Channel>) | Set Acquire Voltage Trigger Level. Sets the voltage level that triggers a measurement acquisition. |
| TRIGger:ACQuire:CURRent <Amp>,(@<Channel>) | Set Acquire Current Trigger Level. Sets the current level that triggers a measurement acquisition. |
| TRIGger:ACQuire:VOLTage:SLOPe <Slope>,(@<Channel>) | Set Acquire Voltage Trigger Slope. Selects the rising or falling voltage slope that triggers a measurement acquisition. |
| Command | What it does |
|---|---|
| *SAV <Slot> | Save State. Saves the present instrument state to non-volatile memory location 0 or 1. |
| *RCL <Slot> | Recall State. Recalls a saved instrument state from non-volatile memory location 0 or 1. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *RST | Reset. Resets the instrument to its factory default state. |
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: :CONFigure:REMote ON on the 63102A and OUTPut:COUPle ON on the N6792A. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: MEAS:VOLT? on the 63102A and MEASure:VOLTage:DC? (@1) on the N6792A. 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_63102A_ADDRESS") # Chroma 63102A
b = rm.open_resource("PASTE_N6792A_ADDRESS") # Keysight N6792A
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(":CONFigure:REMote ON") # Remote control
b.write("OUTPut:COUPle ON") # Enable Output Coupling
# No shared reading with an example on both, so each uses its own command
print(a.query("MEAS:VOLT?")) # Measure voltage
print(b.query("MEASure:VOLTage:DC? (@1)")) # Measure Voltage
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Chroma 63102A or Keysight N6792A and writes the report from the measured results.
In TestFlow's library the 63102A has 31 SCPI commands and the N6792A has 157 SCPI commands. 0 command headers are common to both, 25 are only on the 63102A (mostly CURR and RES), and 133 are only on the N6792A (mostly SOURce and OUTPut).
Not without changes. None of the 25 command headers in the 63102A library matches one of the 133 in the N6792A library: the 63102A uses commands such as CURR:STAT:L1 and the N6792A uses commands such as SOURce:FUNCtion. PyVISA opens both the same way, but each command needs its own version for each instrument.
The N6792A: 31 commands for the 63102A against 157 for the N6792A in TestFlow's library. Of those, 2 on the 63102A and 38 on the N6792A are queries that read a value or state, and the library splits them into 11 and 16 subsystems.
Only the N6792A library has an operation-complete command (*OPC?); the 63102A library has none. Only the N6792A library has an error-queue read (SYSTem:ERRor?); the 63102A 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.