LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I execute a function immediately after RunUserInterface has been executed?

Using Labwindows 5.5.1:
I would like to execute a function immediately after loading a UIR panel and executing RunUserInterface.
One option is to use a timer control, set to a very short duration and have the callback function disable the timer control.
Is there a more elegant solution, say by queueing a call back event then calling RunUserInterface??
0 Kudos
Message 1 of 3
(3,227 Views)
In my opinion the use of PostDeferredCall () should answer your question. According to function on line help
"(PostDeferredCall) Posts a function to LabWindows/CVI that is to be called at the next occurrence of GetUserEvent(), RunUserInterface(), or ProcessSystemEvents()."
So it seems that the deferred function should be executed immediately after RunUserInterface is run.

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?
Message 2 of 3
(3,227 Views)
Thanks Roberto,

PostDeferredCall() works fine

Alan
0 Kudos
Message 3 of 3
(3,227 Views)