LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Callback are Synchronous...Right?

Since RunUserInterface is, in general, just processing GUI events? The callbacks that handle those events are synchronous calls from the RunUI thread...right? What I'm getting at is...when designing callbacks, it seems best to make them somewhat like an interrupt...short, sweet, and possibly just a means of sending a message to some other worker thread to do the rest of the stuff. Am I on the right track?

Something else of interest here is GUI updating. My GUI is updating inputs by a timer polling on my DIO card. I would like my GUI to have a finer resolution...not so choppy (my system has other processing demands). So, my thought is to make my timer function as short at possible and have other threads do the work (if necessary). However, does anyone know of anyway to setup my DIO signals as software interrupts? Can anyone throw me a bone on optimization techinques for this? Thanks,
0 Kudos
Message 1 of 2
(2,919 Views)
Please take a look at the following cvi sample program which uses asynchronious timer events. You can find this example program under \cvixx\samples\toolbox\asynctmr.prj.

Kind Regards
Heinrich Illig
Applications Engineering
National Instruments Germany
0 Kudos
Message 2 of 2
(2,859 Views)