LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subpanels working randomly in application

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.

 

0 Kudos
Message 1 of 6
(3,431 Views)

I made a test VI and posting for reference.

It would be great if someone can tell me what is that I'm missing.

Download All
0 Kudos
Message 2 of 6
(3,402 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(3,381 Views)

Okay, I did that. Now only the last VI, the one I attached (userscreens) is not working.

0 Kudos
Message 4 of 6
(3,369 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 6
(3,352 Views)

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

0 Kudos
Message 6 of 6
(3,333 Views)