Use Case and Applications

SPX is typically used as a deterministic “plant/device” behind your real client code. The quality gate is a test suite (MiL tests) that drives time explicitly and asserts behavior.

Below are concrete, repo-grounded use cases (models and tests live in spx-examples).

MiL integration tests for Modbus clients

Docs: Add a communication protocol, Use in Unit Tests (MiL).

Simulate SCPI/ASCII instruments for driver testing

  • Your Software Under Test: instrument driver speaking SCPI over TCP

  • SPX role: instrument state machine + predictable waveforms/scenarios

Docs: ASCII / SCPI Adapter, Use in Unit Tests (MiL).

MQTT device telemetry regression tests

Docs: MQTT Adapter.

BLE device simulation for mobile apps and QA rigs

Docs: BLE Adapter, BLE Device Simulation Walkthrough.

Snapshot-driven regression suites

  • Capture a known-good state as a Snapshot.

  • Restore it before a test so every run starts from the same simulation state.

Docs: Snapshots — Getting Started, Snapshots (Core).

Last updated