11-30-2020 01:32 AM
Hi,
I'm trying to acquire an image from the QCam CCD camera using LabVIEW 2013. For this am using a dll file and call it using ActiveX automation refnum. The connection is OK as I can read/write the camera properties like gain, Exposure time, etc. The problem is on Saving the image. There are some methods in the dll. The "TakeImage" method can take an image, but to save the image, I need to use another method "SaveLastImageToFile([in] BSTR filePath)". The time gap between the methods should be around 0.5 seconds. I have written a VI for that but getting an error (0x80004005). Please look at the attachment and give suggestions.
Thanks
Shuvankar
12-02-2020 05:54 PM
You are using Third-Party software to control your Camera. You probably need to contact them to learn why your attempt to save the image is failing. The Error number is unknown to LabVIEW -- see if the Camera manufacturer can clarify its meaning.
Bob Schor
12-03-2020 11:22 PM
Hi Bob Schor,
Thanks for your reply. Actually, the provider uses VB, and it's working fine. Can you please suggest, how can I "wait for an event to occur" in LV?
12-05-2020 01:36 PM
Am I correct that you have almost no training or experience with LabVIEW? The Structure that handles "Wait for Event" is called an Event Structure.
Bob Schor
12-06-2020 07:17 AM - edited 12-06-2020 07:20 AM
Dear Bob Schor,
May I send you an ActiveX dll, with its document, so that you will understand my confusion? I need to save the image from the camera although the connection is ok.
I'm a research scholar. I do research on antiferromagnetism of thin films and on the surfaces. I'm learning LabVIEW for this project only. I know the 'Event Structure' and its functions but The event which I'm talking about is the "HaveNewImage" in the dll file. The dll provider said that we have to wait until that event occurs after the method 'TakeImage'. But I did not get any option to do so.