08-09-2012 02:27 PM
In general, what does the IMAQdx "Internal Error" mean, and how should this be debugged? I am getting this error when controlling a camera using C++ and the IMAQdx library, and am not sure how to figure out what is going wrong. Thanks for any input.
08-10-2012 09:38 AM
Hi there!
Is there anything else that comes with the internal error, or do you have an idea of exactly what function is producing the error message? These will likely factor into why the internal error is coming from.
08-10-2012 11:26 AM
Hi Ravi,
Thanks for your reply. I was getting the error when using the IMAQdxConfigureAcquisition function in a Qt program. Using the same camera in a separate C++ program, I get IMAQdxErrorSuccess from the same function, so I know its not an issue with the camera itself. Although I found the page in the IMAQdx help about the error codes, many of the error descriptions, such as "internal error", don't really help much with figuring out how to fix the problem. So, if you could provide any insight, that would be great.
Thank you!
Elise
08-10-2012 04:18 PM
What sort of camera are you using?
The two most likely possibilities I can think of:
- You might be using a camera that relies on other external software/drivers (like most DirectShow cameras) and perhaps there is something being loaded in your process (perhaps via Qt, for instance, since you mentioned it) that is somehow conflicting with the camera drivers.
- Your porgram might be corrupting memory or the stack and causing IMAQdx to get into a bad state.
Eric
08-10-2012 04:32 PM
Hi Eric,
Thanks for your reply. This error comes up with 3 different firewire cameras, all of which come up as "National Instruments IMAQ Interfaces: NI-IMAQdx IIDC Digital Camera" devices in the computer's device manager. Using the same Qt program, I can actually use a USB camera (DirectShow) with no issues (IMAQdxConfigureAcquisition, IMAQdxStartAcquisition, IMAQdxGetImageData, etc. with IMAQdxErrorSuccess). I will look into your suggestions about conflicts with the camera drivers and memory corruption. Let me know if you think of anything else.
Thanks,
Elise
08-10-2012 04:34 PM - edited 08-10-2012 04:35 PM
Do you see the same error in MAX? Since you are using an IIDC FireWire camera with NI's driver then there should be no other drivers loaded by the camera in that process.
Eric
08-10-2012 07:10 PM
No, I don't have any errors in MAX or LabVIEW. So, it sounds like the IMAQdx "internal error" doesn't have a specific indication?
Elise
08-10-2012 10:27 PM