Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

unable to interface axis ip network camera

Hello,
 
please, let me know if anyone have tried to visualize on a VI a video from an IP camera.
 
Tanks
0 Kudos
Message 21 of 24
(1,312 Views)
Hello Mozill,

In response to:


I followed your suggestions and I am able to capture the image. Thanks a lot for the help. However, I am running through some problems. The first problem is that when I try to stop the vi, labview freezes, I am using the vi 'Grab with Property Page.vi'. The second problem is that when I copy paste the 'Grab with Property Page.vi' in my custom vi program. It does not work; I cant even access the nodes. It shows just the image of the vi I copied. Is there any way to solve the problem?

I am not sure why your program is freezing up when you try to stop this example.  Make sure that you are using the "Stop" button and not the LabVIEW "Abort" button to stop your VIs.  The other thing to try would be to use "Highlight Execution" and click on the stop button to find out where exactly the VI causees LabVIEW to freeze.  As for the VI not working when you copy it have you tried just copying the SubVIs with in the example to a new VI?  Are you using the "Grab with Property Page.vi" as a subVI for your program?  Let me know if any of these suggestions help.  Thanks and have a great day.

Regards,
Mark T
Applications Engineer
National Instruments
0 Kudos
Message 22 of 24
(1,296 Views)
Hi Mark,

I am using the "Grab with Property Page.vi" as a subVI for my program. I do not wanna run the webcamera on the continuous basis; rather I want to turn it  off when I push the stop button. The reason I wanna do this is to reduce the overload on the main vi. I am not sure if it affects the main vi from the timing point of view as I have some timing events in my main vi. I just wanna let you know that I have 99% of my code running in the while loop which incorporates basically the temperature and humidity monitoring and data logging. I am using the camera code outside the while loop which will track the position of my robot all the time.

Thank you for your time and have a nice day.

Regards,
Dushyant Patel
0 Kudos
Message 23 of 24
(1,287 Views)
Hello Dushyant,

I understand what it is you are trying to do.  The problem is that if you use this example VI as as subVI then every time your loop iterates it opens a new refernce to the camera and then closes it again.  This is not very efficient.  You should always initialize the camera at the beginning of your program and then close it at the end.  Then you can choose whether or not you want to acquire from the camera depending on what state you are in.  What I was saying was to copy the code into your application and redesign it so you initialize the camera at the beginning then keep the reference open when you are not actually acquiring.  This might be part of the reason it is freezing up at times.  Let me know if this does not make sense.

Regards,
Mark T
Applications Engineer
National Instruments
0 Kudos
Message 24 of 24
(1,275 Views)