06-12-2009 10:18 AM
Hello,
I'm new to LabWindows/CVI and I have a question that might be very simple to answer.
When a sleep function is utilized inside a binary switch, how can I get the icon on the main panel to update as soon as I click on the switch, instead of it changing the status only after the sleep function is over?
In other words, if I have a switch to which I apply a delay of x seconds (through the sleep function), when I run the program and I click on the switch, its status changes after x seconds. Instead I would like it to change immediatly, and then wait for x seconds before the action of the switch take place...
I appreciate any help. Thanks!
Solved! Go to Solution.
06-12-2009 11:30 AM
Just before the sleep call, add: ProcessDrawEvents();
JR
06-12-2009 11:48 AM