ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PostDelayedCall for inits

Hello all,
is it correct to use PostDelayedCall() with a time of 0 before
any call to RunUserInterface so that the callbacks will indeed
be called upon entering RunUserInterface ?

I would like to set up a whole bunch of initialisations, but
util the interface is running I can't call the callbacks.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 1 of 3
(2,970 Views)
Sorry, I just saw that it's not the same type of callback. I
wanted a way to call user interface callbacks only once the
interface is up and ready.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 2 of 3
(2,963 Views)

I suppose PostDeferredCall can suit your needs: as noted in the help for this function, the function is executed "in the main thread at the next occurrence of GetUserEvent, RunUserInterface, or ProcessSystemEvents", in your case immediately after RunUserInterface is called.



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,960 Views)