LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

Sleep Function and Binary Switch Icon Update

已解决!
转到解答

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!

0 项奖励
1 条消息(共 3 条)
3,778 次查看
解答
已被主题作者 andreag 接受

Just before the sleep call, add: ProcessDrawEvents();

 

JR

0 项奖励
2 条消息(共 3 条)
3,773 次查看
Thanks a lot!
0 项奖励
3 条消息(共 3 条)
3,767 次查看