06-06-2017 01:41 PM
Every time I run my program with images, instead of getting an array of the images within the folder I chose, I get an array with an amount of elements equal to how many pictures I have within the folder, but they're all the last image in the folder. From what I can discern, this comes from the Imaq Create using the same storage space for all pictures even though I give it a unique name each time. Any advice?
06-07-2017 12:01 AM
share the VI in 2015
06-07-2017 12:34 AM
06-07-2017 12:43 AM
@nman130 wrote:
Every time I run my program with images, instead of getting an array of the images within the folder I chose, I get an array with an amount of elements equal to how many pictures I have within the folder, but they're all the last image in the folder. From what I can discern, this comes from the Imaq Create using the same storage space for all pictures even though I give it a unique name each time. Any advice?
Whats the difference between images within the folder and the Pictures within the folder.
List File will give the file names of all the files of respective pattern inside the selected folder. so check whether the List files gives you expected files or not.
Vision Indicator will popup based on the Number of File names
06-07-2017 01:24 AM
@nman130 wrote:
Every time I run my program with images, instead of getting an array of the images within the folder I chose, I get an array with an amount of elements equal to how many pictures I have within the folder, but they're all the last image in the folder. From what I can discern, this comes from the Imaq Create using the same storage space for all pictures even though I give it a unique name each time. Any advice?
-Your code right now gives the images in the Array and I don't see anything wrong with it.
-Just to make sure, the folder contains multiple .png images right?
06-07-2017 01:46 PM
Yeah, it contains multiple different images but the array that gets output is the same image multiple times. I'm not sure why it isn't working on my end then.
06-07-2017 11:21 PM
-Can you provide the screenshot of your front panel and Block diagram after running the code?
-Does your File names list all the images?
-Can you upload couple of sample images which you have?
06-07-2017 11:39 PM
I found what the issue was. My IMAQ Create file had been corrupted and wouldn't create a unique image from a unique name. I copied my coworker's version onto my computer and ran it again and it worked perfectly.
06-08-2017 09:56 AM
Thanks for posting back with your resolution. Could you mark your post as the solution so that others running into the same/similar issue can find it more easily?