05-17-2018 03:15 AM
hello,
I am trying to write a VI, in which I want to save multiple pictures (frames I've extracted from an AVI file) in PNG format in a folder. I have managed to save one frame, but I don't really know how to do that for multiple frames. I know I need to do a "for loop" for getting frames and I need to do a "for loop" for changing the name of an image while saving in a folder, but how do I run a "for loop" on a name of a saved image?
my VI is included.
thank you!
Solved! Go to Solution.
05-17-2018 03:24 AM
Typically, you use a string to format a name (e.g. with Format Into String). Use "i" and %d, to get an iteration number in the string. Then use Build Path or String To Path to convert to path.
05-17-2018 06:29 AM
thank you for replying.
I've tried to do what you suggested, but I'm getting an error and I'm not sure why.
attaching my VI with the error.
05-17-2018 07:29 AM
You tried "too hard". Make the Folder a constant, only build the file name, like this:
Bob Schor