LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Producer consumer architecture for image acquisition

Solved!
Go to solution

Hello!

I would like to take as many images as possible using my AVT Manta G146 camera in 0.25 s. Is Producer/Consumer architecture the fastest way to do this? I have attached my code for reference. Is there any other better and faster way to grab and save images?

Thanks in advance.   

0 Kudos
Message 1 of 7
(4,084 Views)

Hope Existing Architecture itself will be good but try to Transfer Images Using Queue, Which will avoid data Loss and Race Conditions.

----------------------------------------------------------------------------------------------------------------
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 7
(4,057 Views)

Thanks for your response. I have transferred the image data through the queue. I am able to save just 15 images in 0.25 s. Is there any other faster way to get more than 15 images?

0 Kudos
Message 3 of 7
(4,042 Views)

You are attempting to save more than 15 images at 1388x1038 pixels in 0.25", or 60 images per second.  Curiously, this is much higher than the camera's stated frame rate of 17.8fps at full resolution.  It appears (to me) that you are being limited by the camera, not by LabVIEW.

 

Bob Schor

Message 4 of 7
(4,035 Views)

Thanks Bob Schor. I think I can increase the frame rate by reducing the image acquisition window. I tried to change the image height and width from property node and it doesn't work. How exactly should I change the Image acquisition window of my camera? 

Thanks in advance.

0 Kudos
Message 5 of 7
(3,992 Views)
Solution
Accepted by kaka21

I guess I found out the solution to change the image acquisition window using property node.

0 Kudos
Message 6 of 7
(3,989 Views)

I'm glad that the Property Node to change the acquisition parameters worked for you.  IMAQdx, possibly because the "camera standard" might not quite be a "standard", is sometimes frustratingly vague, with few examples and code that doesn't quite do what you think it should do.  Plus a lot depends on the Camera Manufacturer providing the information and "links" into LabVIEW, Property Nodes, Invoke Nodes, and IMAQ/IMAQdx.

 

Just wait until you try use an Ethernet camera on a different sub-net than your PC ...

 

Bob Schor

Message 7 of 7
(3,983 Views)