04-03-2016 06:46 AM
Hi Folks.
I have the following vi which opens a webcam window and grabs a frame and saves it. It uses dll's instead of imaq. It works well except for some weird connection issues.
When I run the vi the dialogue box (shown below) appers and I select my VGA USB Camera but the image is black. However when I unplug and re-insert the camera cable and run the vi the video feed appears and there is no selection process. It is as if there is some sort of memory somewhere.
If I choose the other default cameras it is displayed (its actually a grey box because they are disabled) so connects straight away but then I cant remove it and select another without rebooting the machine.
Does anyone know how I can reslove this strange behaviour?
Thanks,
Mark.
04-03-2016 09:23 AM
04-03-2016 09:35 AM
The camera is: elp-usb30w02m
04-03-2016 12:49 PM
My guess is that IMAQdx "Snap" should have no problem returning you an Image. If you want to use third party software to do this, see if the Vendor has a Support site ...
Bob Schor
04-03-2016 12:52 PM
Ahh, I thought the name was familiar. You posted earlier "Using USB Camera without using IMAQ", and were encouraged to use IMAQ ... Advice still stands. Yes, there may be an additional cost, but how much is your time and effort worth, particularly if you aren't making progress?
BS
04-03-2016 01:02 PM
The code does work from a labview point of view. The video source is an operating system thing. I have a similar program using C++ and have the same connection issue There is a lot of similar issues over the web but no real solution. Thought someone here may have seen it before. Alternatively it may well be a dodgy camera.
04-05-2016 12:16 PM
As it turns out it was the camera. The internal camera works fine. As a workaround I just put in a few reconnects. Its not ideal but will do for now.