LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

asynctimer before runuserinterface

Hi all,
is it possible to use an asynctimer before RunUserInterface() is called?

In my application various (hardware) initialisation is done before RunUserINterface is called. In one section I start an new asynctimer. Its callback shall send commands over an serial interface to an instument.

It looks as is the timercallback is not triggered. (Yes, I start the new asynctimer in running mode.)

So when does the timer start? Only when RunUserInterface() is running or imediatly when it is created with NewAsyncTimer()?

Kind regards,
ah

0 Kudos
Message 1 of 2
(3,142 Views)
hello ah,

the timer should start, after you have called the NewAsyncTimer() function.
i attached an example, which creates a timer and sleeps for 5s until the UI is displayed.

kind regards,
robert h
NI germany
0 Kudos
Message 2 of 2
(3,090 Views)