LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup disabling timer on Windows2000

In an application I'm developing for a customer of mine I'm experiencing a strange behaviour when using FileSelectPopup or DirSelectPopup: in my program a timer is in charge of periodically check the bench and acquire some measures with a daq card, but when I call FileSelectPopup or DirSelectPopup the timer stops; CVI is not hanged, since the rest of the program remains active. The timer stops when the popup panel is displayed.
How can I fix this?
Working on Windows2000 ITA Service Pack 2 128 MB RAM with CVI 5.5.

Thanks for your help.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 3
(2,745 Views)
The basic CVI timer is associated to a specific panel. When you popup a modal dialog the main panel does not process events. This is the correct and expected behavior for modal windows (popups). If you would like a timer that is not attached to a specific panel and it's event processing, use the asynchronous timer (cvi\toolslib\toolbox\asynctmr.fp). This timer is designed to run in another thread asynchronously from the main UI thread. There is an example of the asynctmr.fp under cvi\samples\toolbox\asyncdem.prj.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(2,745 Views)
Sorry Chris, but my experience is quite different.
In all of my programs I have a timer in the main callback; its callback at least updates a clock on the panel and blinks a led to make evident the program is active.
This timer remains active when the system popup panels are displayed. Look at the sample project I attach for an example of it.

Anyway, yesterday I wasn't able to reproduce during all day the problem I suffered last week, so I assume the timer disabling depends on some bug in my application and not on a strange interaction between Windows and CVI.
I will investigate more and more.

Thank you for your answer.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(2,745 Views)