Feature

Observability & Debugging

Inspect running twin behavior, diagnose protocol interactions, and collect runtime evidence before issues reach hardware.

See what the twin is doing

When a client reports an unexpected value, start with evidence. Inspect the running instance, its live attributes and chart, then check its communication settings and logs. This helps you see whether a change reached the model and what the model did next.

Example: a Modbus client and an energy meter

A client is reading a virtual meter, but the value is not what you expect. Check the instance and its communication settings in SPX, then read the relevant register with your client and compare it with the model attribute.

Instance stateCommunication settingsClient readCompare values
SPX UI showing a paused Modbus energy meter, its adapter settings and recorded current chart.
The paused meter shows its adapter settings beside a recorded current change.

Screenshot preview

The paused meter shows its adapter settings beside a recorded current change. Open original image

The screenshot is from the Modbus Quickstart: the adapter is configured to listen on 0.0.0.0 at port 5023, with unit ID 1. Use the reachable SPX host address and port configured for your own installation; 0.0.0.0 is a listen address, not the address your client connects to.

Inspect the instance

  1. Check state: in Instances, open the meter and confirm it is running.
  2. Observe values: in Attributes, select the relevant measurements for the chart. Use separate axes when values have different units or scales.
  3. Check communication: open Communication and inspect the adapter, endpoint and mappings. Compare the client address, port, unit ID and register interpretation with the model.
  4. Compare and investigate: read the mapped value using your client and compare it with the corresponding attribute. If results differ, inspect logs and check timing, register addressing and data format.

A running instance and an enabled adapter are useful checks, but they do not prove that a client can connect or that it interprets a register correctly. The Quickstart includes a concrete read and expected result.

Ask your AI agent

With SPX running and your agent connected through the prepared workspace, you can ask it to investigate an existing instance:

Prompt for your AI agent

Inspect my running SPX instance and help me diagnose why my client is not seeing the expected value. First ask me for the instance name and what the client expected and received. Then inspect the instance state, relevant attributes, communication settings and available logs. Explain what you can confirm, what is uncertain, and suggest the next check. Do not change or recreate the instance unless I ask you to.

Tested with GPT-6 Luna · Medium

The agent can use SPX runtime tools to inspect state and diagnostics. Give it your client endpoint and the register or topic you are testing; share only the connection details needed for diagnosis. Ask it to distinguish observed results from assumptions.

In a local test, the agent asked for the missing details, inspected an existing Modbus meter without changing it, and compared its live voltage with a hypothetical client report. It identified connection and register settings to check next; it did not verify a real client's reading.

Ways an agent can help

  • Set up a client: describe your Modbus client or MQTT tool and ask for the host, port, register or topic to configure. The agent can inspect the model's settings and explain which address is reachable from your environment.
  • Investigate a connection: ask it to compare your client's settings with the instance configuration, inspect available logs and suggest a focused next check.
  • Test a model: ask it to start an instance or scenario, read selected values and report what changed. You can then compare the result with your client and the SPX UI chart.
  • Exercise a disconnection: ask it to find an available disconnect scenario or explain a safe way to test one, then inspect the resulting state and recovery. Actions depend on the model and environment; agree on any changes before applying them.

Your agent may need access to the relevant client tools, network and documentation. A configuration suggestion or a running instance alone does not prove end-to-end communication: ask it to report the actual test and observed result.

When it helps

  • Understand whether a command changed the simulated device state.
  • Check a client connection and compare protocol readings with model values.
  • Capture the conditions behind a repeatable issue before automating a test.

Continue exploring