LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop stop when pressing the minimize button??

Hi,
I've made data-acquisition VI, when i run it and press "for example" the
minimize button of my VI it stops untill i release the minimize button, is
there anything to avoid this?? So that when i press the minimize button that
my vi just go's on with it's loops?

Best Regards,
Thijs
0 Kudos
Message 1 of 3
(2,651 Views)
This behavior is built into Windows, so there is little LabVIEW can do to address this behavior. Are you sure that the VI stops? Does the screen stop updating or does your acquisition stop? You can log to file to test this hypothesis. I suspect the the acquision is continious and the screen is just not updated with new information.
0 Kudos
Message 2 of 3
(2,651 Views)
> I've made data-acquisition VI, when i run it and press "for example" the
> minimize button of my VI it stops untill i release the minimize button, is
> there anything to avoid this?? So that when i press the minimize button that
> my vi just go's on with it's loops?
>

As the other response indicated, we try to keep the loops running, but
certain things in windows consume the UI thread, meaning that LV can't
update the UI. You can make a simple VI that charts ten points per
second and see if when you release the mouse the chart catches up. The
standard way LV does execution tries to decouple the UI from the
execution, so that the diagram can continue even while the UI is stopped.

If this example works and your application doesn't, it is likely that
y
our I/O loop is interleaving UI and I/O. If the UI gets blocked for a
period of time, such as you describe, this is when the UI blocks the
rest of the loop. If this is the case, and this is important to you,
you can try to separate the UI from the I/O by moving then to two
independent loops that communicate via locals, etc.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,651 Views)