キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Multiple VI application

解決済み
解決策を見る

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.

0 件の賞賛
メッセージ1/19
4,660件の閲覧回数

Unable to open the application (I beleive it is created in labview 2018), kindly convert it to LV2017


CLD Using LabVIEW since 2013
0 件の賞賛
メッセージ2/19
4,639件の閲覧回数

Please find the LV1017 version code in attachments

0 件の賞賛
メッセージ3/19
4,635件の閲覧回数

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.


CLD Using LabVIEW since 2013
すべてをダウンロード
メッセージ4/19
4,625件の閲覧回数

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.

0 件の賞賛
メッセージ5/19
4,618件の閲覧回数

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. 

Don't forget to rate a good Answer....
---------------------------------------------------------
Here should be some cool signature

But there's NOT

LabVIEW 2012-2017
---------------------------------------------------------
メッセージ6/19
4,613件の閲覧回数

This vi might help you.


CLD Using LabVIEW since 2013
0 件の賞賛
メッセージ7/19
4,608件の閲覧回数

Is this a homework problem?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 件の賞賛
メッセージ8/19
4,576件の閲覧回数

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. 

0 件の賞賛
メッセージ9/19
4,541件の閲覧回数

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

0 件の賞賛
メッセージ10/19
4,540件の閲覧回数