Hi,
Thanks for posting your query on the National Instruments forum.
If you have a while loop on the block diagram that does not have a timing function (from the timing palette) within it then it will run each iteration as fast as possible. Add a wait function to see if this improves the code. Place within the while loop a Wait On Milli Second Multiple function, wire a 0 constant to it, and see if there are any improvements. What have you got going on within the loop i.e. once a button has been pressed on the front panel what happens next? is there any post calculations of any kind being performed within the loop? Perhaps you may want to consider / explore using event structures?
Please ensure you haven't got the execution highlighting option enabled as this slows the execution by animating the dataflow with the use of animated buble that travels from node to node along the wires.
You could just > right click on the iteration terminal in the while loop and create indicator to see a count for each iteration of the loop, outputted on the front panel.
Can you attach your VI to the discussion forum board for me to inspect your code / advise you further.
Kind Regards,
Kurt
Applications Engineer,
National Instruments UK & Ireland.