06-15-2010 08:44 AM
I have a tab control where each tab has a graph that is embedded inside of a typedef. When the program is executing and I change tabs, it takes a few seconds for the graph to update even though the data has been long posted. This would be ok, except when the program ends and I change to a tab, it does not update the control accordingly.
Why does this happen. Are there any solutions?
06-15-2010 09:07 AM
Steve Block wrote:I have a tab control where each tab has a graph that is embedded inside of a typedef. When the program is executing and I change tabs, it takes a few seconds for the graph to update even though the data has been long posted. This would be ok, except when the program ends and I change to a tab, it does not update the control accordingly.
Why does this happen. Are there any solutions?
Performance
Updating graphs that are not visable is a waste of CPU.
Solutions
I have used Invoke node >>> Get images (unbundle that image to ensur eth nodes is not optimized out) when the graph becomes visable.
Search on "Jiggle the Handle" for other threads on this topic.
Ben
06-16-2014 06:47 PM
I am in a similar situation and need some graphs on different tabs to update when they are hidden so the user can check the results after the test. They are part of a custom control cluster on each tab. Unfortunately even writing to the value property of the custom control doesn't update them. How can I force them to update even when hidden? This is totally crazy that I can't!
06-16-2014 07:14 PM
This is an old thread.
What is your LabVIEW version? Can you show us some simplified code that demonstrates the problem.
06-16-2014 07:53 PM
These pictures show the tab control. The graph and numeric control are a custom control on the tab page. During the test I use a reference to the custom control to read the numeric control and write to the graph using the value node. Probing this point shows the data being written to the value node but unless the particular page is open at the time it doesn't get written to the display. I even tried writing to the "value (signaling)" and using an event to write the data to a value node rather than a reference but it still doesn't update the display unless that tab is visible at the time.
The only way to do it seems to be putting a graph indicator on the tab and writing to that directly. It means a lot of recoding and a messier result 😞
06-16-2014 07:54 PM
Oh, and Labview 12 SP1.
06-17-2014 01:56 AM
More exactly, Labview 2012 but not SP1 (My mistake - I have a few versions which gets confusing at times).