03-24-2009 01:40 AM
I have connected an array of 5 elements to an FOR loop with auto indexed enabled (FOR loop index is not connected ) ,after 5 iteration ie 0-4 loop terminates automatically ..............HOW it gets terminated itself?
I have attached the image for refrence
Solved! Go to Solution.
03-24-2009 01:48 AM - edited 03-24-2009 01:53 AM
Read the labview help to know more about auto index to an for loop
Enabling Auto-Indexing for Loops
If you wire an array to a For Loop or While Loop, you can read and process every element in that array by enabling auto-indexing. When you wire an array from an external node to an input tunnel on the loop border and enable auto-indexing on the input tunnel, elements of that array enter the loop one at a time, starting with the first element (if you are not wired your N terminal then your loop runs no of times of your array size thats what your lopp running for five times).
Complete the following steps to enable or disable auto-indexing for a tunnel on a loop.
03-24-2009 03:52 AM
03-25-2009 03:08 AM
what ever you said is true even i have checked that but in help file it doesn't say any thing about such (if you are not wired your N terminal then your loop runs no of times of your array size ). How to support it with out any refrence
03-25-2009 03:12 AM
03-25-2009 03:34 AM - edited 03-25-2009 03:41 AM
http://digital.ni.com/public.nsf/allkb/76895DA6D9BFE6B586256F7000745561
http://cnx.org/content/m12221/latest/
find the tutorial for How Does a For Loop Decide the Iteration Count When Multiple Auto-Indexed Input Arrays are Present?
03-30-2009 12:08 AM
Hi,
Is your problem solved? If so please mark the post (Whichever you think is the best solution for your query). This will help others facing same problem and looking for a solution.
Thanks,