‎07-09-2009 10:57 AM
The increment counter is the i terminal in a while/for loop. Every time the loop runs it outputs an incremented number. Its output is a double. You can convert the double to a string, concatenate the string with your file name (put the number at the end), and then convert that string to a file path. There are VI's that perform each of these functions for you. This way you will have a new file name each time the loop runs.
Nick Keel
Applications Engineering
National Instruments
‎07-09-2009 11:33 AM
‎07-10-2009 10:54 AM
‎07-10-2009 11:23 AM
The for loop seems like a good method. You would need to have it around the acquisition part as well though, or else no data would get into the loop. What about the for loop method didn't work?
Nick Keel
Applications Engineering
National Instruments
‎07-10-2009 11:27 AM
Well once the saving is done I want the grab to continue running. So I cant really put anything around the acquisition part because it will stop when the for loop stops.
‎07-13-2009 10:51 AM
‎07-14-2009 09:55 AM
Hi Bonesaw,
Instead of using a for loop you can use a case structure. You can get one image per iteration and then when you have taken all of the images that you want you can switch to the other case and stop saving images. You can perform an increment function in the true case (where you are saving images) and use a shift register on the while loop. Once the shift register has incremented to the desired number of images you can switch to the false case and stop saving images.
Nick Keel
Applications Engineering
National Instruments