09-10-2018 08:22 AM
Hi Everyone!
Here's my problem. I got a VI from my predecessor at university and I should take a picture every second with this VI. With the previous camera DMK22AUC03 (https://www.theimagingsource.com/products/industrial-cameras/usb-2.0-monochrome/dmk22auc03/) the image acquisition and image storage always worked perfectly. Now I have a new camera with which I should take the pictures, it is the USB 3. 0 successor model DMK27AUR0135 (https://www.theimagingsource.com/products/industrial-cameras/usb-3.0-monochrome/dmk27aur0135/). Since then the following error message appears:
The only thing that's changed is the camera.
I installed the driver of the new camera. The new camera is also recognized in the Measurement & Automation Explorer (MAX) and the snap/graph function works, i. e. the camera image appears. Only when the VI is executed, the error message (-1074360293 at IMAQdx Get image2.vi) appears in the Express VI "Vision Acquisition".
The laptop has USB 2. 0 ports only. However, I also connected the new camera to another laptop with USB 3. 0 connection, and the same error message appeared there. I had already completely deactivated the firewall, even then the error message came up.
Unfortunately I can't put the VI online because I'm not allowed to do so.
What else could cause this error message to appear with the new camera?
I hope you can help me! I am an absolute LabView newcomer and don't know where I stand at the moment.
Thank you very much!
Greetings Tom
09-10-2018 11:24 AM
You may have the camera configured for a trigger that it's not receiving and therefore timing out. Also make sure the camera is not selected in MAX when you're trying to connect to it through LabVIEW.
I'd abandon the express VI and try a simple example such as 'Grab.vi' that ships with LabVIEW. Seach 'IMAQdx' in the example finder, there are many good IMAQdx camera control examples there>
09-10-2018 11:25 AM
You may have the camera configured for a trigger that it's not receiving and therefore timing out. Also make sure the camera is not selected in MAX when you're trying to connect to it through LabVIEW.
I'd abandon the express VI and try a simple example such as 'Grab.vi' that ships with LabVIEW. Seach 'IMAQdx' in the example finder, there are many good IMAQdx camera control examples there.
09-10-2018 04:16 PM
If you can see the Camera in MAX, and can successfully do a Snap (taking a single Image is simpler, and will work for your situation, than taking a Video), you should be able to cobble together a trivial LabVIEW routine to do the same thing.
a
The three grey functions are IMAQdx Open Camera, IMAQdx Snap2, and IMAQdx Close Camera. The bottom function, IMAQ Create, creates the memory Buffer that Snap requires to hold the Image that is displayed on the Front Panel in an Image Display Control. The Camera I used, BS-I7K, is the WebCam on my laptop -- the name is the name of the Camera in MAX. You don't need to know it -- if you click "Create Constant" on that Open Camera terminal, you'll get a blank Constant with the little Drop Down triangle -- push the Triangle and all the Cameras that MAX has seen will appear -- choose the Camera that you have currently plugged in and tested with MAX.
If this simple code doesn't work, you've got real problems! If it does, then the "problem" you might have, particularly since you "can't put the VI online because I'm not allowed to", is you might have really poorly written code, using all kinds of Express VIs that can do some simple things, but not what you are asking of them. The "solution", of course, is to abandon the Express VIs and write proper LabVIEW code (like the five-function example posted above).
Bob Schor