02-25-2014 10:37 PM - edited 02-25-2014 10:42 PM
HI
I am facing problem in understanding data flow in labview.I am using while loop inside two for loop,but my program is ending up in infinite loops .
I have attache my VI below .
I will thankful for your help
Solved! Go to Solution.
02-25-2014 11:03 PM - edited 02-25-2014 11:05 PM
How do you know you have infinite loops?
In frame 2 of your flat sequence structure, I see a while loop that will run as fast as it can until i=359, so 360 iterations.
In frame 3, another while loop that will run 360 iterations. It is inside a 64 iteration For Loop and that inside another 64 iteration For Loop. I don't see anything that would cause infinite loops. That while loop will run a total fo 64 x 64 x 360 iterations, 1,474,560. That is a lot, but is certainly not infinite. I don't know how long that code will take to run, but I don't see anything in there that is particularly time consuming.
I suggest you put indicators on all of your iteration nodes and confirm that loops are running infinite times.
02-26-2014 12:08 AM
Thank you for your brisk reply ...
I am using large data set that's why It is taking time .I did mistake in probing while crossvalidating .
Parag
02-26-2014 12:10 AM
If it's taking a long time that it feels like the code is hanging, then using the i terminal to drive a progress bar might be helpful,
02-26-2014 12:28 AM
Wow... this is good way to track progress I never used it .
Thank you