LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update the control continuously in XP?

Can somebody help me to solve the problem encountered in XP?

1. In the attached project (for example), I add a numericslide to show the application progress when the function is time consuming. The test.c has added the ProcessDrawEvents() in the loop to update the numericslide continously.
In Win XP, you can force the numericslide stop to update by clicking the panel when the application is "not responding" in the windows task manager. This will be a problem when the numericslide is stop to update because user may think the application is dead (the application is "not responding" in the windows task manager too). But this is no problem in win2000! What's the difference between Win XP and Win 2000? How can I update the numericslide smoothly in XP?

2. Another question is this application can not be killed in the windows task manager when it is "not responding" in XP. Is this normal?

Thanks,
0 Kudos
Message 1 of 3
(3,145 Views)
Hi jefflin

1) I modified your source to make the progress bar running in its own thread.
2) Did you try an async timer (see C:\Program Files\National Instruments\CVI71\samples\toolbox\asyncdem.cws) ?
That can reduce your CPU use. With your method, it's 100 percent.

Regards,
Message 2 of 3
(3,134 Views)
Hi dilution,

It works. Thanks for your help.

Jeff
0 Kudos
Message 3 of 3
(3,114 Views)