Connector
SCPI
Read and control SCPI bench instruments
- Category
- Instruments
- Kind
- source
- Capabilities
- StreamsAssetsCommandsOperationsEntities
- Runs on
- Linux x64Linux ARM64macOS Apple siliconmacOS IntelWindows x64
Read and control bench instruments that speak SCPI, over the network or a serial port: power supplies, multimeters, electronic loads, oscilloscopes and more. Add one input per instrument. Supported models are listed under Supports.
What you get
- Live measurements — for a power supply, each channel's measured voltage, current and output state.
- Setpoints — set voltage, set the current limit, and turn the output on
or off from Trellis via
ch.write(path, value). Each command is read back, so you see commanded vs. measured. - Auto-detect — leave Model on
autoand the connector identifies the instrument. The channel list shows once connected. - Scope traces — each oscilloscope channel's whole trace arrives as one
reading on one channel, such as
/scope/scope1/ch1/waveform, and draws as its own trace tile. Peak-to-peak arrives as a plain value on/scope/scope1/ch1/vpp. - One instrument per input, named by its Device name (e.g.
psu1). Channels read/psu/psu1/….
Setup
- Put the instrument on the network and note its host and port. Power supplies often use port 5025. Or plug it in over serial and note the port.
- In Inputs, add SCPI Instruments and fill in:
- Device name — a short label, e.g.
psu1 - Connection (host:port or serial device) —
192.168.1.50:5025, or/dev/ttyUSB0. For serial, set Serial baud rate, Serial parity and Command terminator to match the instrument's menu. - Model —
auto, or a specific model such asrigol_dp800 - Poll rate (Hz) — how often to read, e.g.
10
- Device name — a short label, e.g.
- Press Test connection. It asks the instrument who it is (
*IDN?) and shows the make, model and serial that answered. - Start the input. In the Channels table, give each channel a name and
unit, such as
ch1/volt→bus voltage,V. - Measured channels appear on Live. Setpoints (
voltage_sp,current_limit,output_sp) are available in Trellis.
Keysight 34980A
Scanned voltage channels stream with the instrument's own timestamps. Relays
and digital lines are commands. Fill in Scan channels, Relay channels
and Digital inputs/outputs with the instrument's slot-channel numbers:
1001, one bit as 5101/3, a wider port as 6101:16.
Alicat and ESPEC
Alicat flow and pressure controllers and the ESPEC GL chamber are not SCPI and cannot be auto-detected.
- Pick their Model:
alicat_mc,alicat_liquid,alicat_pressureorespec_gl. - Alicat serial settings (19200 baud, CR-terminated) are set for you.
- Unit address is the single-letter address set on the device (default
A).
Notes
- Setpoints are checked against the instrument's limits before they are sent. Every command is recorded.
#Supports
- Rigol DP800 series (DP811/DP813/DP821/DP831/DP832)
- Keysight/Agilent 34401A multimeter
- Keysight 34461A Truevolt multimeter
- Keithley 2750 Multimeter/Switch System (front-panel DMM)
- Keysight 34980A Multifunction Switch/Measure Unit
- Matrix WPS300S series (RS-232)
- Siglent SPD3303 series
- B&K Precision 9115
- Keysight E36100 series (E36102A/03A/04A/05A)
- TDK-Lambda Genesys series
- Keysight N5700 series (Genesys SCPI interface)
- B&K Precision 914x series (9140/9141)
- Keithley 2400 SourceMeter (measure side; source side planned)
- B&K Precision 85xxB electronic loads (8500B/8502B/8510B)
- Keysight InfiniiVision 1200 X-series oscilloscopes (DSOX1202/1204, EDUX1052)
- Siglent SDS1000X-E oscilloscopes
- Tektronix 2-Series MSO oscilloscopes (MSO22/MSO24)
- Rigol DG1000Z waveform generators (DG1022Z/DG1032Z/DG1062Z)
- Alicat MC-series mass-flow controllers (RS-232, model=alicat_mc)
- Alicat liquid-flow controllers (model=alicat_liquid)
- Alicat pressure controllers (model=alicat_pressure)
- ESPEC GL-series chamber controllers (model=espec_gl)
#Connection fields
Every field the Add input form shows for this connector.
| Field | Type | Required | Default |
|---|---|---|---|
Device namepsu1 | Text | Yes | — |
Connection (host:port or serial device)192.168.1.50:5025 | /dev/ttyUSB0 | Text | Yes | — |
Serial baud rate9600 | Number | — | 9600 |
Serial paritynone | even | odd | Text | — | none |
Command terminatorcrlf | lf | cr | Text | — | crlf |
Unit address (Alicat models only)A | Text | — | A |
Scan channels (34980A only)1001,1003,2001 | Text | — | — |
Scan range, volts full-scale (34980A only)10 | Number | — | 10 |
Relay channels (34980A only)3012,3013 | Text | — | — |
Digital inputs (34980A only)5101/3,6101:16 | Text | — | — |
Digital outputs (34980A only)5102/0,6102:32 | Text | — | — |
Modelauto | rigol_dp800 | Text | — | auto |
Poll rate (Hz)10 | Number | — | 10 |
Updated