Skip to main content
This page discusses details about using instro.

Instruments

Two ways to get data

You can acquire measurements from an instrument in two ways. The difference is who triggers the reads and how often.

open()/close() or with block

Instruments can also be open/closed automatically using a with block.
Best when the instrument’s lifetime spans many functions, or when you want to interleave setup and teardown across event handlers, fixtures, or REPL sessions.