03-14-2016 04:35 AM
Hello!
I have a tabcontrol with two tabs. One tab shows me a graph of temperatures, while the other tab gives me access to control pressure with a slide. My problem is when my program is running and I change between the two tabs. When I am on my pressure-tab, the temperature-graph is not logging/showing the various temperatures. When I go back to the temperature-tab it's just a big black gap between the lines in the graph. Does anyone know how I can get the graph running, even though I'm not on the tab? Thank you for the help!
- Karita.
Solved! Go to Solution.
03-14-2016 04:44 AM
Hi Karita,
that's a problem of your VI!
The code in the VI usually does NOT depend on the active/frontmost tab - except when you use a case structure connected to the tab control!
Remove any dependencies connected to your tab control and the code will run "for both tabs"…
03-14-2016 04:58 AM
If you change the scale, does the data reappear again? I have seen an issue before where if you write to a tab that isn't the active tab, the chart/graph won't redraw the old data (only add the new data) until you force the graph to redraw - e.g. by changing the scale.
I have a graph in a tab control, and when the user switches to that tab (using a tab value change event), I very quickly change the scale by a tiny amount (e.g. 0.000001) and then change it back again - this forces it to redraw the old data.
GerdW's suggestion might be the case if you're only writing to the graph depending on the tab selection (e.g. using a case structure).