05-11-2010 06:07 PM
Hi,
I am new to labwindows and i am trying to create a time event where every hour for 24 hours i want my program to write somethign in excel.
I tried using function Delay and SyncWait and those functions freezes up the user interface.
Any tips/help will be appreciated.
Thank You
Solved! Go to Solution.
05-11-2010 11:15 PM
05-14-2010 12:47 PM
Many, if not most, CVI developers wind up implementing a delay function for themselves that periodically, during the delay, wakes up and processes events so that the GUI isn't frozen.
The idea is to break the wait or delay up into pieces, and process system events in between each piece.
A timer works too, you can try the async timer that Wolfgang mentioned, it runs a bit better and on a separate thread, so it lets you do what you normally would with the main thread and the GUI, yet still get timer function. If you use a smart delay, you still wind up doing nothing a great deal of the time, and events are only processed periodically.