pyvisa / pyvisa-sim

A PyVISA backend that simulates a large part of the "Virtual Instrument Software Architecture" (VISA_)
https://pyvisa-sim.readthedocs.io/en/latest/
MIT License
69 stars 39 forks source link

Feature suggestion: Connecting instruments #64

Open murvar opened 1 year ago

murvar commented 1 year ago

I've been tasked with implementing a way to connect multiple simulated instruments with inputs and outputs. Would this be appreciated as part of PyVISA-sim? Otherwise I will create it as a separate layer.

If yes, do you have any suggestions on how to do this?

MatthieuDartiailh commented 1 year ago

I think the first step is to define an API to get access to the internal state of the simulated instrument. This definitively belong within pyvisa-sim I would say. After how one connects multiple instruments together could be external but may require some sort of observer pattern on the internal state of the simulated instruments.