01-07-2014 12:42 PM
I want to create an array using a while loop but I don't know how to do it. I basically want to do the same thing as in the picture of the example VI found in LabVIEW's example VIs called "XY graph data types.vi," but with a while loops instead of a for loop. The reason I want to do this with a while loop is because LabVIEW won't allow me to pass error out or VISA out data wires through a for loop.
Solved! Go to Solution.
01-07-2014 12:50 PM
LabVIEW certainly does allow you to pass an error out or VISA out through a for loop. The default is to autoindex an output and thus creating an array but it is a simple right click on the exit tunnel to change this. For recent versions, it's changing Tunnel mode to 'Last Value'. You can also use a shift register.
01-07-2014 12:51 PM
I also want the number of iterations to be finite and user settable. So it must work with any number of iterations.
01-07-2014 12:55 PM
Nevermind my last reply. I wrote that before I saw your post. Thanks a lot! That was very easy.