Prev: Display ActiveX Image on LabVIEW Front Panel [method returns"handler" (IPictureDisp - stdole.Picture)]
Next: DDE Help?
From: Michelle_B on 31 Mar 2008 18:10
Vision Builder for Automated Inspection (VBAI) is designed to work with any NI frame grabber, GigE Vision or IEEE 1394 cameras, or the NI Compact Vision System. Since this the AXIS PTZ 213 is a network camera VBAI is not designed to interact with the camera directly.
An option is to pull an image into VBAI from LabVIEW using the "Run LabVIEW VI" step and run the inspection from there. Once you are able to acquire an image from this camera in LabVIEW follow these steps to bring the image into VBAI:
Create a VI that has an IMAQ display as a control and an indicator. The control is to create an input for VBAI to communicate and the indicator is the output of the image. Next, open VBAI and add the step for Simulate Acquisition. Then run this step by itself ? this will create an error, ignore it and click ok. This step creates an image buffer for your AXIS image to fill. Next, include the Run LabVIEW VI step and choose the VI you created. In the setup pane on the right, select the VI Controls tab. Click the Configure button. Choose the IMAQ display control you created and select Use Measurement. Finally, select the Simulate Acquisition step from the list. From here on you should be able to pull images from LabVIEW into VBAI.
Does this help?
From: Capi on 31 Mar 2008 19:40
First of all thanks everybody for all the propsed solutions.
I will try to do your solution.
But I haven't a lot of experience using LabView and NVAI.
If you give me your email I will can ask you some questions that I will have.
My email is <a href="mailto:marc.capilla(a)gmail.com" target="_blank">marc.capilla(a)gmail.com</a>
From: LoloN on 31 Mar 2008 06:10
Hi Capi Unfortunately I cannot tell you if Axis cameras are compatible with NI vision builder as I haven't tried it yet. However, I am currently working on a LabView acquisition software for an Axis 241Q server, so maybe you can be interested in this. A simple way of acquiring images/movies from an axis camera is to use the activeX control provided by axis (axis media control SDK). it is available on this page (
http://www.axis.com/techsup/cam_servers/dev/activex.htm). In your front panel (after having installed the SDK), create a container for an activeX object ; then insert the AxisMediaControl class into the container. In doing that, you will have access to all properties and methods of the AMC class and therefore be able to control the camera. In addition, take a look at the doc provided with the SDK, especially the file AmcDoc.chm... It is very useful.Good luck with your work !!Laurent Nguyen
From: Michelle_B on 1 Apr 2008 10:40
would be best if we kept this in the forum so that we can spread the
knowledge. If you have any specific questions to your application you are
welcome to ask them here. Since you are new to LabVIEW you may find the
following KnowledgeBase helpful: <a href="http://digital.ni.com/public.nsf/allkb/7D5F60ADBFD9CDC2862572BA005DD96A?OpenDocument" target="_blank">How to Learn LabVIEW</a> There are links to a
three and six hour self-paced presentation with associated exercises and
solutions. We also have training for our Vision software which can be found
here: <a href="http://sine.ni.com/nips/cds/view/p/lang/en/nid/2290" target="_blank">NI LabVIEW Machine Vision and Image Processing Course</a>. There are many
other resources on our website: KnowledgeBases, Tutorials, example code, Help documents
that can get you going in the right direction.
there is something I did not explain well in my last post I would be happy to
From: Capi on 6 Apr 2008 18:40
I am trying to do your solution with Labview and ActiveX controls, but I haven't much experience with Labview .
Do you can help me to do a simple application with Labview to controls the PTZ of the AXIS 213PTZ camera and to adquire the images of the camera.
If do you have a example or a application that it can help me please send it to me. <a href="mailto:marc.capilla(a)gmail.com" target="_blank">marc.capilla(a)gmail.com</a>.