I have multiple subVIs that has a loops inside. The mainVi calls these subVis. I need to pass the parameters and even be able to stop the subVIs from the mainVI. Cannot launch the subVI front panel (which would run it in separate execution).
The only way I have found so far is to create a shared variable (single process) for stop and any parameter that needs to be passed from main VI to subVI. Then monitor the shared variable value in the subVI for change. Is there any pros/cons of using this approach and is there any other approach to achieve this behavior instead of using shared variable?
Can the variable be passed by reference and subVi can read the value? Or is there any way to register the events, generate the event on main Vi and when the mainVI generate the event, subVI receives that event and performs accordingly?
Attach is the zip file.
TIA.
*************************************************
CLD
*************************************************