LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building a multi instrument modular program

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!

0 Kudos
Message 1 of 2
(461 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(420 Views)