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

create subVI with while loop

Hello,

i have a big program which is in a while structure and when i try to make a subVI, i have a message which tell me that my selection contain a front pannel which is in a while loop. How can i do to make a subVI?

Thanks a lot

メッセージ1/8
4,601件の閲覧回数

If you make it into a sub-VI, how are you gonna press that stop button?

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 件の賞賛
メッセージ2/8
4,589件の閲覧回数

Hi macarel,

 

just proceed 🙂

 

You should ask yourself: Which front panel control? Is it intended to be used in the subVI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ3/8
4,588件の閲覧回数

It wasn't planed to make subvi's.

My program is initialy a main Vi with buttons Each Button launch another specific VI which make a specific measurement.

It works very well. But when i make an executable, it doesn't works.

So i try now to make only one VI with all the specific VI inside but it doesn't works too. The front panel of the specific VI never appears.

I searched in the forum and all the person who had this problem and solved it used subVI.

So i try this solution... which doesn't works too.

any suggestions?

0 件の賞賛
メッセージ4/8
4,573件の閲覧回数

Hi Macarel,

 


The front panel of the specific VI never appears.


Because you didn't check the VI properties, especially the window properties?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ5/8
4,562件の閲覧回数

Do you mean "show front panel when called"?

It's checked but no enhancement.

0 件の賞賛
メッセージ6/8
4,556件の閲覧回数

Hi Macarel,

 

this would be the right time to show main and sub VI as well as project/appbuilder settings...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ7/8
4,546件の閲覧回数

Hi, If you want to show multiple subVIs, then you have check there windows appearances. Other then that if you want to control them from your main VI. then you have to place your subVIs in separate while loop inside your main VI. this will cause main vi to constantly updates control in SubVI. Hope this helps your problem.

Labview user
0 件の賞賛
メッセージ8/8
4,519件の閲覧回数