LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make this VI save every 5th image?

This Vi allows me to control the number of images I save, but I want to ALSO save every 5th image because the grab is too quick. I want some time between each save. Any ideas on how I can do this without removing things from this VI.

0 Kudos
Message 1 of 5
(2,467 Views)

Your specifications are not clear to me.

 

  • Do you want to save every 5th image unconditionally?
  • Do you want to save every 5th image when the button is pressed until you have the desired number of images?
0 Kudos
Message 2 of 5
(2,461 Views)
every fifth image when the button is pressed until the desired number of images.
0 Kudos
Message 3 of 5
(2,458 Views)
Can anyone give me some insight on this?
0 Kudos
Message 4 of 5
(2,421 Views)

Use this code, but:

  1. Multiply the value from "# of images" by five.
  2. Inside the case, divide the shift register value by 5 using quotient&remainder.
  3. Place the "save" code inside another, even smaller case structure.
  4. Wire the remainder from (2) to the case selector. Save only if the remainder is zero and execute a blank case otherwise.
  5. tweak for details. 😉

See how far you get. 🙂

0 Kudos
Message 5 of 5
(2,417 Views)