12-03-2023 04:10 AM
Hello,
I have many instruments that have their own vi. The vi itself runs in a loop, does things continuously and has buttons etc. They are essentially state machines.
I want to make a main vi that talks to these vi, tell them do something, and sometimes wait and get their return values. I would like to not mess around with the instrument vi whenever a new main vi is built around them.
What is the best way of doing this please?
thanks!
12-03-2023 11:32 AM
Hi niforlinuc,
@niforlinuc wrote:
I want to make a main vi that talks to these vi, tell them do something, and sometimes wait and get their return values. I would like to not mess around with the instrument vi whenever a new main vi is built around them.
You want to change the behaviour of those subVIs, but you don't want to change those subVIs?
Seems like a tough challenge to me…
@niforlinuc wrote:
I have many instruments that have their own vi. The vi itself runs in a loop, does things continuously and has buttons etc. They are essentially state machines.
The "device driver" functions (aka VIs) should not contain a loop and no UI with "buttons etc.". The UI to interact with the device will be YOUR main VI as you call the driver functions as needed…