Quickstart

SCPI Quickstart: Read a Virtual Multimeter

Connect to a library multimeter over TCP, query its identity and read a simulated voltage.

Before you begin

Install SPX with ASCII/SCPI support and SPX UI. Have a raw TCP client ready. This quickstart uses the library's SIGLENT SDM3055 model, which implements a subset of the physical instrument's commands.

Run the test

1. Start the multimeter

  • Select Lab.DigitalMultimeter.SiglentSdm3055.Scpi in Instances → New instance. If it is missing, import the linked YAML through Models → Load model from file.
  • Set ascii_port to 5025, create the instance and start it. The model's default 0 requests an automatically allocated port.
SPX UI showing the virtual SIGLENT multimeter's ASCII adapter and voltage chart.
Check the instrument's ASCII TCP endpoint in Communication.

Screenshot preview

Check the instrument's ASCII TCP endpoint in Communication. Open original image

2. Connect and identify it

  • Connect your raw TCP client to a host and port reachable from that client. In Docker, a host port can differ from the adapter port; publish the chosen TCP port when necessary.
  • Send *IDN? followed by LF (\n), then read through the next LF. The example responds SIGLENT,SDM3055,SDM3055S0000000,1.01.

3. Read a voltage

  • Send MEAS:VOLT:DC? followed by LF. The default reading is 1.234 V.
  • In SPX Attributes, set voltage_dc_v to 2.5, query again, then restore 1.234 and verify another reply.
SPX UI showing a simulated DC voltage change on the virtual SIGLENT multimeter.
The SCPI measurement reflects the current simulated input voltage.

Screenshot preview

The SCPI measurement reflects the current simulated input voltage. Open original image

Check the result

Read the complete LF-terminated reply for every query. When finished, stop your test instance. This is a focused model, not a claim of full SDM3055 compatibility.

Protocol communication

Use these settings and messages with the library’s Siglent SDM3055 multimeter model.

Client / transport
Raw TCP socket → SPX_HOST:5025; Communication → ascii
Framing
ASCII commands; terminate with LF (\n); read replies through LF
Docker
Publish the chosen TCP port; 5025 is this exercise’s override

Replace host placeholders with reachable addresses and use your published ports.

Swipe the table to see requests and replies.

Addresses, requests and expected replies
Address / messageOperation / payloadExpected reply
*IDN?Query identitySIGLENT,SDM3055,SDM3055S0000000,1.01
MEAS:VOLT:DC?Query DC voltage1.234 at model defaults, in V
MEAS:CURR:DC?Query DC current0.123 at model defaults, in A
CONF:CURR:DCSelect current measurementThe tested simulator echoes the command; consume the echoed line before sending READ?
READ?Query the selected measurement0.123 after selecting current; 1.234 in default voltage mode
SYST:ERR?Query error status0,No error at model defaults

Values describe this model’s nominal setup unless noted. Live measurements change as the simulation runs.

Example request and reply

Send *IDN? followed by LF and verify the identity. Query MEAS:VOLT:DC?, change voltage_dc_v in SPX Attributes, then query again to verify the new value.

Send: *IDN?\n
Recv: SIGLENT,SDM3055,SDM3055S0000000,1.01\n
Send: MEAS:VOLT:DC?\n
Recv: 1.234\n
Send: CONF:CURR:DC\n
Recv: CONF:CURR:DC (echo; simulator behavior)
Send: READ?\n
Recv: 0.123\n
No reply or an unexpected value?
  • Use raw TCP, not HTTP. Missing LF leaves the command buffered without a reply.
  • In the tested SPX simulator, CONF:CURR:DC produces an echoed line. Consume it before reading the READ? response; this differs from the physical instrument’s documented command behavior.
  • Use the exact command spellings listed here. This compact model does not implement every instrument command or long-form SCPI alias.

Ask your AI agent

Open your SPX workspace in a local AI agent and ask it to test the ready-made multimeter:

Prompt for your AI agent

Please test the existing SIGLENT SDM3055 SPX model by creating exactly one temporary instance. Inspect its model definition and runtime parameters, then perform real TCP SCPI queries to `*IDN?` and a measurement query supported by the model. Record the exact model path, instance key, TCP endpoint, command and response bytes, and decoded results. Stop and delete only the temporary instance you created, and verify that all pre-existing instances remain untouched. Do not edit the website or model files.

Tested with GPT-6 Luna · Medium

Estimated API cost · $0.0109 per run

In our GPT-6 Luna · Medium test, *IDN? returned the identity above and MEAS:VOLT:DC? returned 1.234. Both replies ended with a line feed. The agent queried the model on internal TCP port 55225 and removed its temporary instance after the checks. An earlier check changed the simulated voltage to 2.5, confirmed that reply, and restored 1.234. In that Docker setup, adapter port 5025 was reachable at host port 5126.

Next steps

Create a custom virtual SCPI instrument with an AI agent. See the ASCII adapter guide for connection and binding details.