You probably have to split your program into several functional elements
that communicate with each other, rather than simply one sequential list of
operations continuously looping.
So one element checks for user input say every 100ms, responds to it and
sends messages to the other functional elements which then act on the
change. If you use queues to communicate between, then you can send "high
priority" events by placing them at the front of the queue.
Alternatively your problem may be far simpler than I imagine. Check your
system memory use as the program runs; if you're running away allocating
lots of memory all the time then it'll hammer the machine and all will grind
to a halt. If system memory use continuously increases and all other
applications also
get hit and respond slowly, then you'll have to look
through and see where memory is being accumulated.
Helper wrote in message
news:50650000000800000067340000-1005954886000@exchange.ni.com...
> HI,
> I have a pretty complicated VI which revolves around one big picture
> control on the front panel, on which I display all sorts of data, most
> coming from one big global array. As I run the VI it becomes
> exceptionaly slow in a hurry and does not react to mouse clicks for
> 5-10 seconds. I have read up and down this website especially the
> optimizing performance section, I was just hoping someone could tell
> me what are the really big problems with a block diagram that are the
> cause of this lagging?