flowRS Open the IDE
← Tutorials

Compose and validate an instrument program

Describe a measurement, let the constraint engine reject the impossible, and compile it to SCPI.

Walkthrough

  1. Open the Instruments level and pick an instrument from the catalogue. Set its parameters: the channel, the values and the modes it offers.
  2. Set the ranges. The constraint engine checks the relationships between settings — the ones that make a configuration invalid even though each field looks fine on its own.
  3. An invalid configuration is refused with the reason, before anything is emitted.
  4. Compile the validated configuration to a SCPI program and read it.
  5. Note the boundary: a model may propose a configuration, but it is the deterministic engine that validates it and the transport that would issue it.

What you take away

You understand how flowRS keeps a language model's authority away from the instrument.

Open the IDE and try it