LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to log in an ip camera?

Solved!
Go to solution

Hello people,

I am developing a RC Train to monitor an electron acelerator, with an IP camera to stream video to the host PC (since this is only a prototype, i've bought a generic camera). I've read a lot about how to acquire video from those cams, and it seems to me that the best way to acquire those images is to use an active X control, but since this is the first time I work with CompacRIO and Labview, I don't know how to open communication with the camera. I belive I shall do that using "Open TCP Connection", but I can't figure how to log in. Probably i'm gonna have send two strings, one with the login and one with the password. Does someone know how to do that?

After that, how do I send the video to the activex control? Maybe I should use the block Automation Open and Property/Invoke Nodes, is that right?

I've already got the camera library registered on windows, so I can see and select it on Labview. By default, the camera uses port 80 to communicate with the PC.

If you need anymore information in order to help, just tell me and I will post it.

 

 

Regards,

Vitor

0 Kudos
Message 1 of 13
(6,670 Views)

Perhaps you should post the exact manufaturer and model number of the camera.  Someone might be able to help if they know more specifics.

http://www.medicollector.com
0 Kudos
Message 2 of 13
(6,627 Views)
Solution
Accepted by topic author Vitor Soares

Actually i have already solved this problem. This camera is an fake Foscam, so i don't know the manufacturer (probably chinese). Anyway, this ip cam has an .ocx library, and what i did was to call it using activex, and used an invoke node where i've found a login function. Now i can acquire video from the camera using labview.

 

Thanks for your concern!

0 Kudos
Message 3 of 13
(6,601 Views)

I just bought a Foscam IP camera for personal use and would like to get to it through LabVIEW. Can you post some example code? Were you able to move the camera around remotely (if your camera supports it).

 

Thanks!

Marcos Kirsch
Chief Software Engineer
NI Driver Software
0 Kudos
Message 4 of 13
(6,317 Views)

Hi Vitor

 

I also have one of those camera's. I also want to acquire a video stream from the camera in labview.

 

Is it possible for you to share the .ocx library file and labview source code? Would really appreciate it!

 

 

Best regards,

Chris.

0 Kudos
Message 5 of 13
(6,112 Views)

Hello,

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.

 

Some example code would be greatly appreciated. Running LabView 2011 on a Win7 32bit.

0 Kudos
Message 6 of 13
(5,899 Views)

@Just_Getting_By wrote:

Hello,

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.

 

Some example code would be greatly appreciated. Running LabView 2011 on a Win7 32bit.


This has been reposted as its own question here: http://forums.ni.com/t5/LabVIEW/How-to-control-and-display-video-from-IP-camera-using-ActiveX/m-p/21...

0 Kudos
Message 7 of 13
(5,854 Views)

Hi Victor,

 

I really need some help from you. Can you send an example of your code.


Thank you in advanced!

 

Thuy,

0 Kudos
Message 8 of 13
(5,824 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 9 of 13
(5,686 Views)

hi all:
I have a question, I could help, if you can communicate foscam camera remotely via LabView.
them great maid.

0 Kudos
Message 10 of 13
(5,088 Views)