LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Message 1 of 8
(3,986 Views)

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 Kudos
Message 2 of 8
(3,974 Views)

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 Kudos
Message 3 of 8
(3,973 Views)

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 Kudos
Message 4 of 8
(3,958 Views)

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 Kudos
Message 5 of 8
(3,947 Views)

Do you mean "show front panel when called"?

It's checked but no enhancement.

0 Kudos
Message 6 of 8
(3,941 Views)

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 Kudos
Message 7 of 8
(3,931 Views)

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 Kudos
Message 8 of 8
(3,904 Views)