03-11-2011 08:45 AM
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
Solved! Go to Solution.
03-14-2011 04:42 PM
Perhaps you should post the exact manufaturer and model number of the camera. Someone might be able to help if they know more specifics.
03-18-2011 09:20 AM
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!
11-16-2011 11:11 AM
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!
04-25-2012 06:16 PM
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.
10-07-2012 11:21 AM
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.
10-11-2012 07:45 AM
@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...
10-15-2012 09:37 AM
Hi Victor,
I really need some help from you. Can you send an example of your code.
Thank you in advanced!
Thuy,
12-07-2012 01:34 PM - edited 12-07-2012 01:45 PM
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.
02-23-2014 11:26 AM
hi all:
I have a question, I could help, if you can communicate foscam camera remotely via LabView.
them great maid.