Streaming plant telemetry out of RT-LAB/HYPERSIM to a monitor-only digital twin — what is the standard read-only path?

Context

We’ve built a monitor-only digital twin for an upstream oil & gas flowstation (~27 assets — wellheads, separators, compressors, pumps, power generation, pipeline). The twin consumes process variables — pressures, temperatures, flows, power draw, vibration features — and outputs equipment health and maintenance advisories.

One design rule is absolute: the twin is read-only. It must never be able to write back to the plant. No control path, no setpoints. That’s a safety boundary, not a preference.

What we’ve tried so far

  • File-based ingestion only. Our twin currently reads appended CSV telemetry (hourly-resolution rows across ~200 tags) — both from our own offline simulation and from a continuously-running simulated facility writing to disk.
  • No OPAL-RT integration attempted yet — that’s the gap we’re here about. Before we burn time on the wrong interface, we want to know what the community actually uses.

What we’re hoping to do

Couple the twin to a real-time plant model as a field surrogate — the real-time sim drives ‘the plant’, the twin shadows it externally and flags degradation. This would let us validate monitoring behaviour months before we get access to a physical site.

The question

What’s the standard / lowest-friction way to stream time-series telemetry out of RT-LAB or HYPERSIM into an external application? Options we’re weighing:

  • OPC-UA — does either product expose a server natively during run?
  • RT-LAB API — does it stream live tag values, or only control the simulation?
  • DNP3 / IEC 61850 / Modbus slave output from the model
  • Direct CSV/file export mid-run
  • Any documented ‘data tap’ mechanism we’ve missed

Constraints

  • Read-only — write capability isn’t just unwanted, it’s disqualifying
  • 1s–1min cadence is plenty; we downsample to hourly internally
  • ~200 tags
  • External app runs on a standard PC, potentially on a different machine than the sim target
  • No HIL hardware on our side — if a path requires IO modules, we can’t use it

What we’re hoping to learn

Mostly: what do people actually use, versus what’s theoretically available. If there’s a canonical ‘run HYPERSIM → stream tags out to a consumer app’ pattern, that’s the answer we want. Pitfalls, licensing gotchas, and tag-count limits all welcome.

Thanks

Hi @saviour298vlthrlab, this sounds like a really interesting project! Using a real-time sim as a stand-in for the field before you get site access is a smart way to test the twin early.

One thing I’d think about: should read-only be guaranteed by the protocol or by the network? With OPC-UA or Modbus, your twin acts as a client, and clients can usually write unless the server blocks it. Enforcing it at the network level, for example with a one-way link, might be a stronger safety boundary than relying on the interface itself.

How are you planning to model degradation on the plant side? If the sim only runs healthy equipment, the twin won’t have much to flag.

Have you looked at the HYPERSIM Python API? getLastSensorValues() reads current sensor values while the simulation is running, so you could poll it every second or so and feed the values into your existing CSV pipeline without any IO hardware. I’d also love to hear what others in the community use for around 200 tags!

Coming at this from the software side rather than the simulator side, but one thing that has saved me on read-only monitoring pipelines: put a small relay process between the sim and the twin. The relay is the only thing that talks to RT-LAB/HYPERSIM (polling something like getLastSensorValues() as sorfina mentioned), and it only publishes outward, e.g. appending rows to your existing CSV or pushing to an MQTT topic the twin subscribes to. The twin then never holds a client session to the simulator at all, so there’s no write path to lock down in the first place.

It also keeps your current CSV ingestion untouched, and later you can swap the relay’s source from the simulator to the real site historian without changing the twin.

Hi @saviour298vlthrlab, has the discussion helped you identify a starting point?
Thanks @sorfina and @colorfulcms for the suggestions! Your read-only requirement remains the key point to validate.
We’d welcome examples from anyone who has implemented a similar setup, particularly how they enforced that boundary.