LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2nd 'For' loop not counting correctly

Hi. Can anyone help with this problem please. I have two 'For' loops running sequentially. The first loop loops 4 times correctly then onto the second loop. The second loop refuses to loop more than 4 times. Any number 1 to 4 in the contol constant works fine, but any number greater than 4 will not work. i.e The second loop loops 4 times then continues out of the loop. There is nothing within the loop to account for this.
 
regards.
0 Kudos
Message 1 of 5
(2,878 Views)
maybe you can post your VI...
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 2 of 5
(2,872 Views)
It's impossible to answer your question without some more information.

Please attach a jpeg of your diagram to show us what you mean.

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 5
(2,869 Views)
Hi Ian,
 
e.g. you create an array consisting of 4 Elements in the 1st for-loop and wire it onto the 2nd loop, then the connection point will be automatically set to "Activated Indication". To stop this, you have to make a right-click on this connection point and select "Deactivate Indication". Doing this you can set the loop-counter to a higher number as are elements in your array.
 
Please take a short look at the attached vi.
 
Regards,
 Andi
~~~ Logic is a systematic method of coming to the wrong conclusion with confidence ~~~
Message 4 of 5
(2,863 Views)

Problem sorted!.Thanks Andi.

Regards. Ian

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