LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling User Interface from inside of a loop

How Can I Handle the URI from a continuously runing function?

This function is a sort of a scheduler performing an endless pooling
loop on a H/W ports in order to aquire events and desply them on at run
time.

One pooling sequence is 1000mSec.

I remember that their is a function that can do a quick refreshing for
the URI but somehow I don't find it.

A suggestion Anyone ???

Thank You
0 Kudos
Message 1 of 3
(3,575 Views)
Hi Alon

Here are several functions that you may find useful:

GetUserEvent
ProcessSystemEvents
ProcessDrawEvents

You are probably better of using a timer or asycnhronous timer rather than
a loop to perform the updates

Vijay Malhotra
NI
Alon Keisar wrote:
>How Can I Handle the URI from a continuously runing function?>>This function
is a sort of a scheduler performing an endless pooling>loop on a H/W ports
in order to aquire events and desply them on at run>time.>>One pooling sequence
is 1000mSec.>>I remember that their is a function that can do a quick refreshing
for>the URI but somehow I don't find it.>>A suggestion Anyone ???>>Thank
You>
0 Kudos
Message 2 of 3
(3,575 Views)
Shalom Alon

I think you should put the function GetUserEvent inside the loop you want
to handle UIR's events and inside the UIR callback functions such as a button
EVENT_LEFT_CLICK you should put the function QueueUserEvent.






Alon Keisar wrote:
>How Can I Handle the URI from a continuously runing function?>>This function
is a sort of a scheduler performing an endless pooling>loop on a H/W ports
in order to aquire events and desply them on at run>time.>>One pooling sequence
is 1000mSec.>>I remember that their is a function that can do a quick refreshing
for>the URI but somehow I don't find it.>>A suggestion Anyone ???>>Thank
You>
0 Kudos
Message 3 of 3
(3,575 Views)