LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control and display video from IP camera using ActiveX control over Internet.

Hello,

I need to control my IP cameras over the internet. I need to log into the cameras and then display the video.  There's an ActiveX control registered on the computer and works fine with IE to access and control the cameras. Controlling the cameras using IE works fairly well, but there are some quirks that I'd like to eliminate by using my own custom code.

Has anyone created a vi that controls a Foscam FI8905W over the Internet? I’ve attempted, but I keep getting a catastrophic failure when I try to call ManagementConnect Method in the DVM_IPCam2 ActiveX Control Module V1.0. I'm not sure whether I need to establish an IP connection with the cameras first, or allow the ActiveX control to establish it for me.

 

Some example code would be greatly appreciated. Running LabVIEW 2011 on a Win7 32bit.  Even some code used to control a similar device using ActiveX over Internet would be helpful.

0 Kudos
Message 1 of 8
(7,161 Views)

.I’ve attempted, but I keep getting a catastrophic failure when I try to call ManagementConnect Method in the DVM_IPCam2 ActiveX Control Module V1.0. I'm not sure whether I need to establish an IP connection with the cameras first, or allow the ActiveX control to establish it for me.

The documentation for the ActiveX control should tell you this. What does it say?

0 Kudos
Message 2 of 8
(7,149 Views)

Unfortunately I don't have documentation on the control. It was automatically downloaded when I accessed the cameras using IE. I'm guessing at what the Methods in the control do, but the parameters that they require sound like I'm guessing correctly. Unfortunately that's all I have to go on...unless there's some documenttion that I'm not aware of that gets installed with the control???...

0 Kudos
Message 3 of 8
(7,129 Views)

Have you tried to contact the vendor? They made the ActiveX control, so they should have the documentation.

0 Kudos
Message 4 of 8
(7,122 Views)

I have an example vi for interfacing to the foscam activex.

 

I plan on using mouse click events within the activex window to trigger the PT function.

 

I only have the basic up/down/right/left directions and not the down-right/down-left/up-right/up-left in the enum.  You can load the camera's web page and view the source to see the Java script code that uses the activex control.  There are definitions for the other directions.

 

I had to mark the control as "Disabled" to keep click events from going to the activex control.  If I double click the control, it goes full screen.  If I then click on it to get out of full screen mode the video never returns or returns to the wrong spot in the VI.

0 Kudos
Message 5 of 8
(6,984 Views)

I have problem to access my ip camera using labview 2011 , any help ?

0 Kudos
Message 6 of 8
(6,736 Views)

Hi Ahmed4ways,

The IMAQdx driver supports Basler and Axis brand IP cameras. If you have a different brand of IP camera, you may still be able to use it in LabVIEW if the camera outputs an MJPEG stream. Take a look at this KnowledgeBase article to see how to accomplish this. I hope this helps!

David S.
0 Kudos
Message 7 of 8
(6,720 Views)

Hi David S,

 

Thank you for your help , I tried this but it doesn't work when i start to capture images , Vision Assistant can see my camera but no images are acquired here is what i see :

 

P.S : I checked the ip address and my user name and password

0 Kudos
Message 8 of 8
(6,703 Views)