12-04-2023 01:29 AM
Hi all,
I am a beginner so I am having a hard time in implementation. I understand that the while loop in sub-vi should stop, for the front panel to show when I run the main vi but how should I implement that?
12-04-2023 01:31 AM
Hi ms6,
@ms6 wrote:
I understand that the while loop in sub-vi should stop, for the front panel to show when I run the main vi but how should I implement that?
There should be no loop in the subVI at all!
Right now it just burns CPU power for nothing - it is just Rube-Goldberg!
12-04-2023 01:51 AM
Then how else should I solve it? I am converting an array of string integers to integers using a loop in subvi...
12-04-2023 02:13 AM - edited 12-04-2023 02:13 AM
Hi ms6,
@ms6 wrote:
Then how else should I solve it? I am converting an array of string integers to integers using a loop in subvi...
Why do you need a loop?
All you need is DecimalStringToNumber as it also takes an array of strings as input:
12-04-2023 02:14 AM
Ah Okay. Thanks a ton! I will try it out!
12-04-2023 02:21 AM
Even after removing the loop, front panel is not showing after I run the main vi
12-04-2023 02:32 AM - edited 12-04-2023 02:33 AM
Hi ms6,
when you want to show the frontpanel of the subVI while it runs then you need to enable that in the subVI properties! (There also is the option to show the frontpanel always after loading the subVI.)
Why don't you show the array in your mainVI and have the subVI only handle the file loading and parsing?
What is the (expected) advantage of "splitting" the UI into two windows?
Would it make (more) sense in your specific case to only show one UI window to the user?
12-04-2023 02:39 AM
I want to create different select options on my main vi and have subvis for different purposes. The one that I am asking about will be the analysis sub vi, wherein ill be analyzing data and will create different graphs. Also, would I have to create sub-panels for the front panel of the subvi to show?
12-04-2023 02:46 AM
Hi ms6,
@ms6 wrote:
Also, would I have to create sub-panels for the front panel of the subvi to show?
You can, but you don't need to.
Using subpanels to show subVI frontpanels is an option, opening the frontpanel of subVIs in separate windows is also an option. It depends on your design decision and user requirements…
12-04-2023 02:49 AM
I would want to open the front panel of subvis in 1 window only. I am relatively new to Labview but am trying to develop an app wherein I will get the data and have different subvis for different purposes,like : Analysis, backup- screen, Live chart screen and so on...
How do I get the properties of sub-vi, because I can't find any option that would say front panel.