Remote-control command sets for 2 SP Scientific instruments from TestFlow's instrument library, each with its arguments and a working PyVISA example.
The library covers 2 thermal forcing systems from SP Scientific: 62 commands in total, 31 of them queries that read a value or a setting back. These are the commands TestFlow's agent sends when it automates a test on SP Scientific hardware, so every entry is one that drives a real instrument.
62 SCPI commands, 31 queries
The standard commands this SP Scientific instrument accepts.
| Command | What it does |
|---|---|
| *CLS | Clears all event registers and the error queue. |
| *ESE | Sets the standard event status enable mask (0-255). |
| *ESR? | Reads and clears the standard event status register. |
| *IDN? | Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *OPC? | Returns 1 when all pending operations are complete. |
| *RST | Resets the instrument to its default state. |
| *SRE | Sets the service request enable mask (0-255). |
| *STB? | Reads the status byte. |
The pattern is the same for every SP Scientific instrument here: open it through VISA, identify it, then write settings and query values. This example uses the SP Scientific THJ80; the full THJ80 reference has every command.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the SP Scientific THJ80's VISA address
# Paste the address of your SP Scientific THJ80 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write("SP1-80.0") # Set Setpoint
print(inst.query("?SP")) # Read Setpoint
inst.close()2 SP Scientific models (thermal forcing system): THJ80, ThermoJet ES. Each page lists every remote-control command TestFlow's agent uses for that instrument, with its arguments.
Yes. Every SP Scientific model in TestFlow's library is programmed with SCPI commands over its remote interfaces, including the IEEE 488.2 common commands such as *IDN? and *RST.
Install PyVISA and a VISA backend, list the connected instruments with ResourceManager().list_resources(), open the SP Scientific instrument by its VISA address (USB, LAN or GPIB), then send commands with write() and read values with query(). Each model page has a working example.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on your SP Scientific instruments through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.