LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequential Saving with Images (Perhaps just simple string functions)

Solved!
Go to solution

Hello, I'm trying to save an image sequentially but in a specific format. Currently, I choose a folder path (the folder all the images will be saved under), the image name, and then the iteration number causes the image to change sequentially with each capture. As of now, the images are labelled "Image1.jpg", "Image2.jpg", etc. Unfortunately, this causes a problem with some of the other software I run the images through afterwards. In order to interpret the images correctly, the file names all have to be under the form "Image0001", "Image0002", etc. While I could (and have) change the Image Name path to "Image000", this adds to later iterations, causing a problem where the file name is now "Image0001000".

Is there some way to change the path structure so that the images save as "Image0001",...,"Image0010",...,"Image0100",...,"Image1000", etc?

0 Kudos
Message 1 of 3
(2,769 Views)

Something that might work is just starting the for loop at iteration 1000. That way, I'd have a long time in the 4-digit iteration file name. DOes anyone know how to change the iteration number to 1000 to start with?

0 Kudos
Message 2 of 3
(2,761 Views)
Solution
Accepted by topic author dhay

Add 1000 to the value of your iteration terminal.

 

 

0 Kudos
Message 3 of 3
(2,757 Views)