LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is my USB camera recognized in MAX but not in LabView?

I am trying to use myRiO to acquire video using a Logitech HD Pro Webcam C920. 

I am using LabView 2013 and have the NI-IMAQdx 4.2.0.3.0 software installed on the myRIO. 

I have tried a couple sample programs: https://decibel.ni.com/content/docs/DOC-3587 and https://www.youtube.com/watch?v=L7tMeKshd38. 

I plugged my Logitech camera into the myRIO USB port. In both cases, LabView failed to recognize my Logitech camera. However, in both cases, it was able to use the integrated Webcam in my laptop to acquire images. When I disabled the integrated camera, it did not find any camera. 

Here is a screenshot of the error when I disabled the integrated camera:

myRio image.2.JPG

 

 

However, when I look at the MAX, the Logitech camera appears and is able to acquire images:

 

 

David York

0 Kudos
Message 1 of 31
(6,217 Views)

Can you show us your project?

 

Make sure that your VI is located under the myRIO target.

 

There are also a Forum just for myRIO:

http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/bd-p/10

 

And there is a community site for the myRIO:

https://decibel.ni.com/content/community/academic/products_and_projects/myrio

0 Kudos
Message 2 of 31
(6,176 Views)

 


@yorkdav1 wrote:

I am trying to use myRiO to acquire video using a Logitech HD Pro Webcam C920. 

I am using LabView 2013 and have the NI-IMAQdx 4.2.0.3.0 software installed on the myRIO. 

I have tried a couple sample programs: https://decibel.ni.com/content/docs/DOC-3587 and https://www.youtube.com/watch?v=L7tMeKshd38. 

I plugged my Logitech camera into the myRIO USB port. In both cases, LabView failed to recognize my Logitech camera. However, in both cases, it was able to use the integrated Webcam in my laptop to acquire images. When I disabled the integrated camera, it did not find any camera. 

Here is a screenshot of the error when I disabled the integrated camera:

myRio image.2.JPG

 

 

However, when I look at the MAX, the Logitech camera appears and is able to acquire images:

 

 

 

 

David York


 

David,

 

Have you tried deleting your "session in" control & recreate it? I have come across situation a while back where the control did not get refreshed with latest values from Max and it gave me pretty much same errors as what you see (I believe it was due to a small name change of the resource which did not get refreshed in the session control).  I say that because you mentioned camera resource getting detected properly with Max & working. Doesn't hurt to give it a try...

 

-BTC

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 3 of 31
(6,159 Views)

dkfire, I have attached the project file to this post. 

0 Kudos
Message 4 of 31
(6,146 Views)

The project is a start but is it possible to zip all the source involved and provide that?

0 Kudos
Message 5 of 31
(6,085 Views)

BTC, I followed your suggestion by deleting the "session in" and then recreating it, but I got the same results as before. 

 

David

0 Kudos
Message 6 of 31
(6,080 Views)

Hooovahh, I am sorry but I don't know what you mean. Where can I obtain the source code so that I can send it to you?


I don't know if this is what you need, but here are two pictures of the software that I am running. The first is the software on my computer, and the second is of the myRIO. Perhaps there are compatibility issues?

mycomputermyriosoftware.JPGremotemyriosoftware.JPG

 

Thank you for your time and help, 

 

David

0 Kudos
Message 7 of 31
(6,075 Views)

Nevermind I see now there isn't really anything to your code.  You may to perform clean up after your VI stops.  Your session is still open, and your image has not been disposed.

0 Kudos
Message 8 of 31
(6,063 Views)

 Hi! yorkdav1 I'm having exacly the same problem, did you solve yours? Could you help me?, let you the link of my question. If you can help me I would be grateful Smiley Indifferent 

https://forums.ni.com/t5/Machine-Vision/Camera-not-found-Error-1074360311-occurred-at-IMAQdx-Open-Ca...

0 Kudos
Message 9 of 31
(5,870 Views)

I did find a solution to my problem. 

 

I was trying to follow the code used in this youtube video:

https://www.youtube.com/watch?v=Fup-ro7qWxk

 

But it didn't work.

 

So I decided to download NI's code directly instead. You can link to it from their project essentials guide:

http://www.ni.com/gate/gb/GB_ACADNIRIOGUIDE/US

 

As it turns out, I think you need an IMAQdx Open Camera.vi block before the IMAQdx Snap.vi block. I have no idea how the guy in the video got his code to work. 

 

Hope this helps,

 

yorkdav1

0 Kudos
Message 10 of 31
(5,857 Views)