LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

For Loop looping only once

The count terminal is set to an integer value of rows-1 and the iteration value is used to control which row is being seperated out of a 1D array via "Array Subsets" and the subsets are recombined into 6 different arrays outside of the For Loop.

Current results show that everything within and without works correctly. When I added an indicator to the count value for the For Loop, it changes from 0 to 1 then stays with no other changes and the interation value (also having an indicator attached) never changed from 0.

I have replaced the entire For Loop twice with no change. I am new to LabView and not sure what could cause a For Loop not to loop.

Any suggestions would be helpful.
KH @->---
The test of a first-rate intelligence is the ability to hold two opposed ideas in mind at the same time and still retain the ability to function. F. Scott Fitzgerald
0 Kudos
Message 1 of 3
(2,675 Views)
Ah yes, this age old problem.

You have indexing turned on on your input array(s) (I can't see the code, but that's the problem, I guarantee it.)

Turn off indexing, and manually index the array(s).
Message 2 of 3
(2,675 Views)
"Labviewguru" wrote in message
news:506500000005000000EA890000-1023576873000@exchange.ni.com...
> Ah yes, this age old problem.
>
> You have indexing turned on on your input array(s) (I can't see the
> code, but that's the problem, I guarantee it.)
>
> Turn off indexing, and manually index the array(s).

Agreed. But then there is also the problem of why the array is
underpopulated. Seems like it must have just one element and if you have it
indexed in a loop you want to go several times then that implies the array
should have several elements.
good lucks.
0 Kudos
Message 3 of 3
(2,675 Views)