06-22-2010 08:31 AM
Hi All,
I need a small clarification related to normal while loop and timed while loop in labview.
In labview, if I keep a while loop on a block diagram, broken arrow will appear on the top left corner of the window indicating error. It shows error because I didnt wired conditional terminal of the while loop.
But same is not the case for a timed while loop.Can anybody tell me what is the reason behind that....
If i unwire the conditional terminal of the timed while loop, it will run infinfite times like a normal while loop. Then y labview behaves differently for these two kinds of loops in the above scenario.
FYI...I am using labview 2009.
Waiting for reply.
Thanks,
Harika
Solved! Go to Solution.
06-22-2010 08:37 AM
Harika,
the reason is quite simple: Timed loops are primarily for real time targets and FPGAs. Since most applications on those targets run without any interruption (at least this is most often the task), it is valid to create a loop which does not terminate. So the timed loop by default assumes that there is no need for a stop button.
The "normal" while loop needs code for termination (conditional terminal) because normal applications on Windows/Linux/Mac are used be quitable.....
hope this helps,
Norbert
06-22-2010 10:05 PM
Thanks Norbert.
06-22-2010 10:26 PM
Harika,
you should change your user name unless you enjoy receiving spam.