05-26-2008 03:41 PM
05-27-2008 01:38 PM
Hi Physicien,
It would be helpful to have some more information to about what you are doing. Would you mind explaining a little more about what you are doing? For example it would be nice to know what software you are using Active X with and what if any National Instruments hardware you are using. As well as what you are trying to accomplish.05-28-2008 07:54 AM
Within Visual Studio 2008, I'm creating a new project as an MFC based application with a dialog window. In this window, I place an ActiveX control which make the image acquisition. When compiling and running the application, nothing happens, no acquisition. I'm using a PCI-1410 card with a standard video camera. The setup works fine in MAX.
I assume that this activeX component is all I need to display the grabbed image. It seems this component came with Measurement Studio.
05-29-2008 12:44 PM
Hi Physicien,
The answer to your question is no. Simply calling the grab is not all you need to do. Since it is working in Measurement and Automation Explorer (MAX) we know your hardware is set up properly. You need to initialize your camera and set up a few things. We have an example of how to do a grab. I would suggest taking a look at that and modify it if needed to do what you need. The examples are located on your hard drive in the following location by default.
C:\Documents and Settings\All Users\Documents\National Instruments\NI-IMAQ\Examples