LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

User interface actions stopping program execution?

Hi,
I have an application that is continuously collecting real time data.
It is
currently designed with an event loop. When the user activates a button,

or uses a pull down menu, the program stops running until the menu is
no longer open. Is there a way of getting the event loop to continue until
the user has committed an action on the window? Or do I need to have
my event loop run in a seperate thread? Will changing everything over to
callbacks solve my problem?

Thanks,
Mike
0 Kudos
Message 1 of 3
(2,998 Views)
I'm not sure if this will help in an event loop, but there is a system setting
that may affect this. You can try:

SetSystemAttribute (ATTR_ALLOW_UNSAFE_TIMER_EVENTS, 1);

This will supposedly allow timer callbacks (post event as well?) to occur
when windows are moved or resized or the system menu is open (I haven't tried
it myself). Again, not sure if this will make any difference when using
event loops....

Chris


"Mike Levine" wrote:
>>Hi,> I have an application that is continuously collecting real time
data.> It is>currently designed with an event loop. When the user activates
a button,>>or uses a pull down menu, the program stops running until the
menu is>no longer open. Is there a way of getting the event loop to continue
until>th
e user has committed an action on the window? Or do I need to have>my
event loop run in a seperate thread? Will changing everything over to>callbacks
solve my problem?>>Thanks,>Mike
0 Kudos
Message 2 of 3
(2,998 Views)
Changing to the Callback method using a timer with the Interval set to 0
seconds would probably solve the probelm, going to a multithreaded
architecture would be the next step after that.

Euros
0 Kudos
Message 3 of 3
(2,998 Views)