LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with data flow

Solved!
Go to solution

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 

0 Kudos
Message 1 of 5
(2,535 Views)
Solution
Accepted by topic author parag77

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.

0 Kudos
Message 2 of 5
(2,521 Views)

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 

0 Kudos
Message 3 of 5
(2,505 Views)

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,

0 Kudos
Message 4 of 5
(2,502 Views)

 

Wow... this is good way to track progress I never used it .

 

Thank you 

0 Kudos
Message 5 of 5
(2,496 Views)