09-17-2007 12:16 PM
09-17-2007 12:21 PM
Assuming you use a FOR loop, it is sufficient to autoindex into the loop and you'll get one element per iteration (starting with element zero) until you run out of elements, at which time the FOR loop ends.
For more complicated needs, just use "index array" and wire the index to simething that increments at the desired rate (e.g. the [i] terminal of a loop).
09-17-2007 12:27 PM
Thanks altenbach,
Does that mean that i just connect the autoindexed point on the for loop where I can output the elements to my further string in which each element will be automatically formatted into the string.
If the first element outof the forloop is say 1.0, i connect it to a format string input CURR%f, its first output will be CURR1.0 and so on as the for loop iterates. have I interpreted it right?
Sorry if I sound too clumsy.
Ravi
09-17-2007 12:32 PM - edited 09-17-2007 12:32 PM
Message Edited by altenbach on 09-17-2007 10:33 AM
09-17-2007 12:46 PM
Thanks, I could get it. Also could you specify, if a for loop takes each element from the array by tunneling , then can it also output the array which is autoindexed. like we collect bunch of elements in an array in a for loop,can we tunnel them out one element at a time?
This will help immensely.
Thanks again
Ravi
09-17-2007 12:48 PM
09-17-2007 12:51 PM
Yes, using indexing on the input and output allows you to feed an array in one element at a time and collect the elements at the output into an array that will be passed out when the loop completes.
Jim
09-17-2007 01:06 PM
Thanks a bunch that solves my one problem.
Thanks again.
Ravi
09-17-2007 01:09 PM
But I have a little prob. here. When I run this VI, it works fine for the first time but second time I run it, it hold the previous value and starts incremtning on that. The problem to me seems in the for loop where I pass into format into a string.
I want that to be always zero intially and then pass on the value which ever comes from the user.
Thanks
Ravi
09-17-2007 01:13 PM