Skip to main content

Step-by-step

instro ships with a built-in SCPI simulator, so you can try the library without owning any hardware.
1

Install instro

2

Start the simulated PSU

Open a separate terminal and start the bundled simulator.
3

Construct an InstroPSU

Create an InstroPSU driven by the SimulatedPSU driver. The driver owns the VISA transport.
4

Configure Instrument

5

Make Measurements

Measurement getters return a Measurement object. Use .latest to grab the current value. Every measurement is timestamped, tagged, and streamed to the Publishers.
6

Close Up Shop

When you’re done, disable the output and close the connection. close() stops the background daemon and flushes the publishers.
7

Read the Data

All Commands and Measurements are logged to the publishers.

Installation

Examples

Supported Instruments