LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indexing when saving images

Hello,

 

i am cquiring images via external USB camera. I would like to know if anybody has a good advice on how to save the images and index them, starting from 0 or 1 whenever i push the "save" control (see the attached code)? I could wire the while loop iteration, but this does not neccessarilly start from 0 or 1.

 

Bottom line: i would like my saved N images to be named "image0, image 1, image 2, ... image N-1"

 

Best regards and thank you.

 

 


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 1 of 4
(2,230 Views)

Use a zero initialized shift register to host your index. Wire it through the Case structure, leaving it unchanged into the false case, using and then incrementing it into the true case.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 4
(2,217 Views)

Do i feel stupid right now.

 

Thank you very much it is perfect.

 

Regards,

 

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 3 of 4
(2,215 Views)

We all need a little push from time to time.

Smiley Happy

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 4
(2,211 Views)