LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input camera as season - IMAQdx

Hi everyone.

 

I design a vi for acquisition my cameras, but I have a problem.

I have a integrated camera (Laptop Webcam) and a ip camera adaptor (From my phone).

Both of cameras grap properly from Labview Devices [bellow image]:

 

L1.JPG

 

 

But in my input season for "IMAQdx Open Camera" just shown my integrated camera (cam0) !! [bellow image]

Why this happen? while my cam1 work and listed in labview device and  get motion properly.

 

L2.jpg

 

Please help me,

Thank you all.

0 Kudos
Message 1 of 8
(4,059 Views)

The cameras that are "selectable" in an I/O Device constant should include all of the Cameras that MAX can enumerate.  Am I correct that the "missing" Camera is the one on your phone?  Did you try to connect to it while the phone was on and capable of communicating with MAX?  Did you try it both with and without MAX running at the same time?

 

All of the Cameras on my PCs that MAX can see can also be configured in LabVIEW with a Camera Session constant.  I'm currently running LabVIEW 2016, but have observed this behavior since I started doing video work more than 5 years ago.

 

Bob Schor

0 Kudos
Message 2 of 8
(4,012 Views)

Thank you for your reply,

 

That's right, my phone camera (as ip camera) can't select for input. 
My LabVIEW version is 2016 64-bit. So, you say MAX can not open the ip camera? because of my version (64bit) or camera driver?

 

However, what is the solution? how I can input my ip camera (cam1)? Except change version...

 

Thank you

0 Kudos
Message 3 of 8
(4,002 Views)

Hi,

If you Phone camera (ip camera) listed in MAX, it should be shown in LabVIEW Imaqdx session constant. But there may be some reasons to happen this scenario.

  • If your phone locked you cant access the phone properties.
  • You may need to enable the developer option in your phone.
Happy to Wire
0 Kudos
Message 4 of 8
(3,997 Views)

Thank you for your reply.

 

How can I know my phone camera (ip camera) listed in MAX or not?

0 Kudos
Message 5 of 8
(3,994 Views)

Hi SaeedNfe,

 

There are a few thoughts I want to add to the conversation:

1) The only IP cameras manufacturers that are officially supported by NI are from Basler & Axis.  Evidently, you somehow found a phone adapter that shows up in MAX that isn't from either of those two manufacturers.  I'm not sure what is happening, but I can't say that I am overly surprised that the IP adapter isn't showing up in LabVIEW (although I am a surprised it is showing up in NI MAX).

2) All hope is not lost,  there is an excellent community example that works with most IP cameras, but it is going to take some work on your part to figure out how to use it with your IP adapter: RTSP over TCP with LabVIEW.  If you don't have much luck with getting the camera that you see in NI MAX working on LabVIEW the way you have tried so far, then this is what you should try next.

3) If you have any more questions on this topic, I suspect you'll have much better luck talking this over with the NI Vision community: Machine Vision.

 

Regards,

 

George B.

Applications Engineer

National Instruments

0 Kudos
Message 6 of 8
(3,985 Views)

Actually there are many network camera drivers for Windows that plug into Windows as DirectX device. And IMAQdx can access DirectX devices that provide a minimum set of capabilities. Some are for specific cameras, others are generic, and the problem for the generic ones is usually to find out how to configure such a driver for a specific camera, using the right protocol, network address as well as the correct url.

It seems that you can actually see the camera in MAX and even display its image there? In that case the LabVIEW IMAQdx control should list the camera too. Did you restart LabVIEW after configuring the camera in MAX? Is the camera (your phone) switched on when you try to connect to it from LabVIEW?

Maybe you can try a different DirectX network camera driver such as http://ip-webcam.appspot.com/

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 8
(3,974 Views)

Interesting - I think the minute I see "IP camera", I immediately think of this:

Is My Camera Supported by National Instruments? (Ethernet IP Section).

 

I didn't realize that IP cameras could be recognized as DirectX devices.  Thanks!

 

Regards,

 

George B.

Applications Engineer

National Instruments

0 Kudos
Message 8 of 8
(3,970 Views)