10-15-2013 10:29 AM
I have an application which displays a picture in a 2D picture indicator and draws a few rectangles and lines on top of the picture.
The locations of these lines change throughout the day, and the application is designed to run minimized and then provide a quick-look at various status items when it is restored by the user.
While minimized however, the image does not appear to get updated, even though my code is updating it once per second. I can't actually tell what happens when it's minimized obviously, but the behavior persists for some time after the window is restored, and the state it is 'frozen' at is from the time it was minimized.
There are other digital indicators on the front panel getting updated in the same 1Hz loop, so I know it is just the 2D picture indicator that's not working--i.e., something with LabVIEW or system related is causing the image not to refresh while it's minimized, and more importantly, for some time after the application is restored.
Some things that will cause a successful refresh to the displayed image after I restore from the task bar to a stale display:
I also tried setting the following property node with no effect:
Another way to think about this would be to imagine a 2D picture control with an analog clock, where lines are drawn for minute and hour hands, and updated once per second. This is not what I'm doing but the example is easy to understand. When the application is restored from the taskbar, the clock appears frozen in time from the last time it was minimized.
Same behavior running this in LV 2012 and 2013... I am looking for any other property nodes or refresh methods to force a refresh at 1Hz, regardless if the display is visible. The display should be immediately up-to-date when the application is restored by the user.
Solved! Go to Solution.
10-15-2013 10:40 AM
You could try looking at the panel resize event (to recognize the restoring) and then force an update using one of the following methods (I have no idea if they will help):
10-15-2013 11:41 AM
Hello m3nth,
I ran into something similar a while ago- at the time I believe I ended up using the (Value) property, which seems to force a redraw.
Regards,
10-16-2013 11:46 AM
Thanks very much for the suggestions... I was using a local variable to write to the picture indicator and replaced that with a Value property node, which corrected the issue.