LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab Control Freezes

I'm Using 4 pages in a Tab Control.  I have, both, the TABS and the "Page Dislay Index" visible (temporarily).  When I switch pages with the tab control the whole vi freezes. This doen't happen at all when I switch pages with the page display index!!  I double checked all my code to make sure nothing else is going on (ex: mouse over - event).  It should be executing identically...  Has anyone experienced this before?
 
 
0 Kudos
Message 1 of 7
(4,286 Views)

I have found another issue with this TAB control that I've not previously experienced.  When I run my front panel (calculations) , It disables and greys the controls and clusters (calculation parameters) on the second page of my TAB control.  When calculation is not executing they return to the enabled state. If I run the mouse over the parameters when no calculation is taking place, an event structure is triggered to load jpegs into a picture viewer.  However, when they are disabled (calculating) this event structure isn't even in the execution cycle.  If I pass the mouse over the controls while they are disabled the whole GUI freezes until calculation is finished...  Any thoughts???

 

Scott

0 Kudos
Message 2 of 7
(4,279 Views)
I don't know what you mean by "this event structure isn't even in the execution cycle". An event structure is always capturing events. Do you have multiple event structures? Without the VI to look at, it sounds like you might be doing something incorrect with events. I suggest you read "Caveats and Recommendations when Using Events in LabVIEW". It's available in the on-line help under the topic Event-Driven Programming. And, if you can post your VI so someone can look at it.
Message 3 of 7
(4,275 Views)

Hello Dennis,

I am also having problems with my VI getting slow over time and sometimes freezing up.  I am wondering if it could be related to the way I am using Tab controls, with multiple graphs( eventually I will have up to 40 graphs)  on top of each other, all collecting data at the same time continuely.   Can you please take a look at my code and let me know what you think?  Also if you have any suggestion on how I could better structure the flow on the entire project I would appriciate any help.  I am a newbee at labview and sometimes feel like I might not be doing things the "correct" way. 

 

Thanks for your help!

Mike

 

0 Kudos
Message 4 of 7
(4,110 Views)
Hi Mike,

One useful utility you could use to analyze and improve performance is the "Profile Performance and Memory" Utility. This is accessible from LabVIEW by selecting Tools»Profile»Performance and Memory.

It will provide you with details on which of the VIs in your program are executing more, how long, etc.

Hope that helps. Best regards,
-Sam F, DAQ Marketing Manager
0 Kudos
Message 5 of 7
(4,081 Views)
There might be a problem with your consumer loop.
You've got a 50ms time delay in the consumer while loop. You might want to monitor how many elements are in the queue (unsing the 'Get Queue Status' function).
The loop rate should be controlled by the dequeue function. There should be no reason to slow the loop execution down with a 'wait ms'.

PS, giving your front panel objects exactly the same label as identical hidden objects makes the block diagram very difficult to read and makes it easy to make mistakes. If you want to have the same identifying text to appear on the front panel for different objects you should use the 'caption' field, make the caption visible and hide the label. You can put whatever you want in the caption field. Then the objects on the front panel can appear the same, but the labels on the block diagram will (should) be different and you can tell them appart.
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 6 of 7
(4,075 Views)
Sorry... just to clarify, my previous message was directed to mic3030.
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 7 of 7
(4,066 Views)