LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem connecting webcam with dialogue box

Highlighted

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.

 

 

 

Dialogue Box.png

0 Kudos
Message 1 of 7
(1,429 Views)
Highlighted
Well, the dialog that you get is not a LabVIEW box. It appears to be coming from the DLL -- which leads me to question whether this is a LabVIEW problem. Does the camera vendor have a support site? I think that is where I would start asking questions. It sounds like something isn't getting initialized correctly.

Who is the vendor?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(1,406 Views)
Highlighted

The camera is: elp-usb30w02m

0 Kudos
Message 3 of 7
(1,397 Views)
Highlighted

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

0 Kudos
Message 4 of 7
(1,380 Views)
Highlighted

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

0 Kudos
Message 5 of 7
(1,375 Views)
Highlighted

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.

0 Kudos
Message 6 of 7
(1,368 Views)
Highlighted

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.

0 Kudos
Message 7 of 7
(1,328 Views)