LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote control network camera from Labview

Hi
We are two students working at a project. Our project is to remote control a sailboat. We need to have a live view from the boat and be able to look around.
For that we found a camera called TrendNet TV-IP400.
It both has ActiveX and java apps, for viewing and controlling the camera.
Our problem is that we would like to get the video feed from the camera into Labview and to control the pan and tilt using Labview.
We read in some other threads here at the forum, where some got the signal from a D-link camera into Labview. We tried to load our OCX file in the same way as described in the thread.
The thread: http://forums.ni.com/ni/board/message?board.id=170&thread.id=302343
But it doesn’t shows up in the list. Then we tried loading the file from the thread, and it shows up, but it’s not for our camera, so it doesn’t work.
So we are kind of stock here.
 
Some background information:
We are using Labview 8.5.
The camera appears to be a twin sister of the CAS-370 network webcam.
We have downloaded a cab-file from the camera, see attached file.
We also attached the ocx-file from the CD-ROM delivered with the camera.
To install the ocx-file we used the following command: regsvr32 "C:\Windows\system32\<FILE>.ocx".
Link to the files: http://www.uldgade.dk/camera.zip
 
In firefox we are able to see a MJPG stream of images from the camera on the following address: http://<camera ip>/mjpg.cgi
It is possible to control the pan and tilt of the camera using CGI commands.
Would this be a better solution?
0 Kudos
Message 1 of 4
(4,337 Views)

I'm not sure if this actually is the problem you face, but there is two ways of calling ActiveX. On is via the frontpanel ActiveX Container, the other is on the block diagram ActveX function Automation Open. Not every ActiveX object works for both (I'm not fluently with the naming conventions here). Using select ActiveX class should show the camera at least on one of these.

 

Felix

0 Kudos
Message 2 of 4
(4,307 Views)

How do you then add the ocx file?... if you use the automation open?... can you see the ocx file when you try to add it to Labview?

 

Wouldn't it be the best solution to use the active x?

0 Kudos
Message 3 of 4
(4,298 Views)

The ocx file is already registered with the regsrv32 call. You should be able to find the link in the registry (using regedit). All that LabView or any other language does is to look up the registry for all available ActiveX components and it will list these. No need to manually link your code to the file (although this can be done with the browse option).

 

Felix 

0 Kudos
Message 4 of 4
(4,271 Views)