LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i refresh/redraw panel/window during a long time delay and switching between applications??

While waiting for delay to finish, and another application comes into focus, my application window is not refreshed when I select it.  All i get is a blank panel until the time delay is complete...
 
TIA.
0 Kudos
Message 1 of 3
(3,091 Views)
Hello TIA,

I assume you are using the Delay() function to do your time delay.  Instead, I would suggest using the Sleep() Windows SDK function, or implement your own delay function with a while loop and ProcessSystemEvents
 
Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(3,087 Views)

delay function with a while loop and ProcessSystemEvents.  Worked, however the Sleep(); function did not (don't know if it is due to call of RunUserInterface();)

Thanks-

0 Kudos
Message 3 of 3
(3,084 Views)