09-25-2018 03:33 AM - edited 09-25-2018 03:39 AM
Aim:
To build a Multi-Level VI application in LabView.
Features:
To run all the VI's at the start of the application.
To open/close front panels of Sub-Level VI's based on button action.
To stop all running VI's from main VI via a button action.
Problem Faced:
Unable to open the front panels of Sub-Level VI's after first successful iteration of opening & closing a VI. Kindly anyone provide a solution for the above issue. The code of the same is attached below.
Solved! Go to Solution.
09-25-2018 04:31 AM
Unable to open the application (I beleive it is created in labview 2018), kindly convert it to LV2017
09-25-2018 04:54 AM
Please find the LV1017 version code in attachments
09-25-2018 05:20 AM
I have checked your vi's and found that the problem is in the sub vi. You are using a local variable of an indicator which has a false value. The vi was running in the background and only the front panel closes. Just wire a True boolean to the stop terminal of the while loop in both of your subvi.
09-25-2018 05:38 AM
Thanks for your quick response, according to my requirement, the SubVI's must not stop to run on clicking close button, instead just it has to close the front panel.
All the VI's must stop on activation "stop app" button from main VI.
09-25-2018 06:00 AM
You shouldn't use multiple Event Structures inside Your loop, as they will prohibit execution.
ie. If You press VI1 button, the VI1 will start, but the VI2 event will prevent further execution before it has been fired.
For Your Main VI to run You'll have to push both VIx buttons, the Stop App button, and the Clear Error button, in that order.
09-25-2018 06:05 AM
This vi might help you.
09-25-2018 12:12 PM
Is this a homework problem?
09-25-2018 10:15 PM
Hi Kartiknattar,
Thanks for your suggestion,
Actually I want to open & close SubVI's frequently without terminating their operation in background, kindly may I know what are the advantages of using ''fpOpen.Hidden" method over ''fpClose''.
Also I want to control the termination of SubVI's from mainVI, that's the reason I have used "Stop" indicator inplace of control in SubVI's, so I can set the values of Stop Indicators from mainVI.
09-25-2018 10:22 PM
Hi BCL@Servodan,
Thank you for your suggestion,
I am trying to use Event Structure in while loop to achieve a continuous operation of opening & closing of SubVI's, I have also tried using Case structures instead of Event structures, but I was not successful to meet my requirement