07-20-2009 02:28 PM
I acquiring images via a USB camera at a rate of 12HZ. The problem I'm having is saving these images. If I save these images while acquiring data, the program can not keep up at this rate. I need a way to acquire 120 images and then save them after the acquisition is complete. I've tried to build an array but this does not seem to work (the issue is when I index the array, I do not get images out). Any suggestions on this approach or perhaps another approach to accomplish this.
Thank you.
Solved! Go to Solution.
07-21-2009 12:54 AM
07-21-2009 04:23 AM
Hi, Gene,
Assumed that IMAQ Vision + IMAQ USB was used.
The typical error is bundling array of IMAQ images. Remember, that IMAQ image passed as reference, not image itself. It means, the code like this will not work as you may expect:
What you need is following. You should create your buffers before acquisition, then acquire each image into own buffer:
Hope it helps,
Andrey.
07-21-2009 06:43 AM
07-21-2009 09:20 AM
Thank you for the suggestion. I tried it and I get an error 1074396120 IMAQ WriteFile not an image. I am using IMAQdx Legacy with a triggered acquisition. Could this be causing the problem?
07-21-2009
09:28 AM
- last edited on
04-01-2025
09:30 AM
by
Content Cleaner
IMAQdx is NOT intended for USB cameras. You should use IMAQ USB instead!
Andrey.
07-21-2009 09:31 AM
07-21-2009 09:36 AM
Well, then IMAQdx is right choice, it should work. Are you able to see images in Measurement and Automation Explorer?
07-21-2009 10:05 AM
07-21-2009 10:15 AM
Sure, you have troubles. You tried to save images AFTER disposing:
Andrey.