07-02-2012 12:20 PM
i tried this and i got an error with the while loop?
07-02-2012 12:24 PM
You don't have a while loop. You have a For Loop.
Look at the tunnel on Mark's example where the array comes in. It is an auto-indexing tunnel. It passes in the elements of the array one at a time.
You used a regular tunnel which passes in the whole array. Nothing is telling the For Loop how many times to run, and you are always just indexing out the first (0th) element with the Index Array function.
07-02-2012 12:25 PM
There is no while loop.
07-02-2012 12:35 PM
i recieve the same problem?
07-02-2012 12:42 PM
07-02-2012 12:43 PM
but this works!.
thanks
07-02-2012 12:44 PM
i got rid of the CONSTANTS ARRAY at the beginning of the for loop!
07-02-2012 12:48 PM
You need the array constant so that the shift register is initialized otherwise when you run this VI again, it will just tack onto the end of the previous results.
Your problem before is that your array was not empty, it had at least one zero value in it.
You need to drag the double value out of the array, then drag it back in.
07-02-2012 01:00 PM
ok.
i understand now.
thank you!
05-16-2024 01:00 AM
Hello
I try to delete rows where there is NaN in an array.
But the result is wrong.
Can you help me ?
Thanks