LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Imaq Create Not Creating Unique Image

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?

0 Kudos
Message 1 of 9
(3,660 Views)

share the VI in 2015

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 9
(3,612 Views)
0 Kudos
Message 3 of 9
(3,608 Views)

@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

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 9
(3,605 Views)

@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?

Thanks
uday
0 Kudos
Message 5 of 9
(3,598 Views)

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.

0 Kudos
Message 6 of 9
(3,583 Views)

-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?

 

 

Thanks
uday
0 Kudos
Message 7 of 9
(3,567 Views)

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.

0 Kudos
Message 8 of 9
(3,564 Views)

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?

Clemens | Technical Support Engineer | National Instruments
0 Kudos
Message 9 of 9
(3,546 Views)