07-13-2009 02:13 PM
I am trying to controll the number of images I save. Right now I can control the VI to save but I cant control how many images I save. I tried a few different methods with for loops, but I cant get it to work. I need this vi to be able to save a ___ number of images, but also continue grabbing even when it is not saving. I attached the VI I am working with.
Solved! Go to Solution.
07-13-2009 02:52 PM
Make the SAVE button latch action and you'll get one image per button press.
For multiple pictures, keep the count in a shift register of the while loop and increment whenever a save occurs. stop saving when the desired number is reached.
07-13-2009 02:56 PM
07-13-2009 03:02 PM - edited 07-13-2009 03:03 PM
Here's one possibility:
By default, the SR is zero, executing the empty case. Whenever the save button is pressed, the SR gets the number of images, which then will decrement until it is zero again, saving an image at each nonzero state.
07-13-2009 03:32 PM
07-13-2009 03:38 PM
07-13-2009 03:40 PM