12-28-2015 01:14 AM
Hello,
I am posting the same VI with different issue here.
I have a tab control with 7 tabs, each containing a subpanel. When a tab control is selected I load and run the corresponding VI. Things work fine in LABVIEW.
But when I create the application, the behaviour becomes random. Sometimes couple of blank tabs show up, some times a single tab is blank. Closing ang re-running the main VI (the one with tab controls) sometimes loads the VI in previously blank tabs.
Is there something wrong with the VI?
Also, is there any way to debug while running the application?
I have double checked the paths and they point to correct address. I have also set all my subVIs to show front panel when called.
Attaching the VI. Ignore the 'frame 0' in the sequence.
12-28-2015 03:31 AM
I made a test VI and posting for reference.
It would be great if someone can tell me what is that I'm missing.
12-28-2015 06:32 AM
I don't see why you need to abort your VIs that are running in the subpanels. Since you have different subpanels, just load them all at the start and just let them run.
My thought here is that you are getting an error when you attempt to abort the VI (due to it not being loaded or it completed running) and that error prevents anything else down the error chain from happening.
12-28-2015 07:40 AM
Okay, I did that. Now only the last VI, the one I attached (userscreens) is not working.
12-28-2015 09:39 AM
Your code is a mess!
Get rid of the tab control -- you don't need it. You are already using a subpanel. That is all you need. The point of earlier advice you received was not to use subpanels on your tab control, but to use subpanels instead of the tab control. If you want to use the tab control for making selections with nothing on the individual pages, that is ok.
Get rid of the sequence structure it is complicating and hiding your code -- and you don't need it. You never need sequence structures.
Fix those fundamental structural problems and we can talk about how to fix what problems might remain.
Mike...
12-28-2015 11:26 AM
If you compare Mike Porter's response to the one I gave you a week ago for the same problem in a different Post, you'll see we basically said the same thing -- don't use a Tab Control (I "fudged" this a little by saying you could have a Tab Control if you make its body so tiny that nothing would fit inside, but you could use the Tabs as a Radio Button Control), don't use Stacked Sequences, and have only one Sub-Panel that you manage "responsibly".
There's an old principle in Magic that "What I tell you Three Times is True". So when you post this same problem again, and Crossrulz, or Nathand, or Johnsold tells you the same thing (for the third time), maybe you will believe it ...
Bob Schor