03-05-2006 12:35 AM
03-06-2006 01:58 PM
03-06-2006 08:39 PM
03-07-2006 11:49 PM
Suresh,
You said...
"I get 'No interface found message' when the hardware.vbp is run."
This is because you are trying to use the NI-IMAQ driver to communicate with your USB camera. The NI-IMAQ driver will not work with USB cameras. "No interface found" is a common error stating that you are trying to open an interface to a camera, but that the interface does not exist (in your case this is because you do not have an NI-IMAQ compatible camera installed).
Installing the NI-IMAQ for USB does not allow you to use your USB camera in Visual Basic, you to use a different method to communicate with your USB camera in Visual Basic. That is why I recommended downloading the ActiveX Software Development Kit.
You said...
"I know I am making a mistake with CWIMAQ.ocx. Can somebody pls help"
I don't think you are making a mistake importing CWIMAQ.ocx into your Visual Basic program. If you are recieved the "No interface found" message, most likely everything is working the way it should.
Lorne Hengst
Application Engineer
National Instruments
03-08-2006 01:01 AM
03-08-2006 07:07 AM
03-08-2006 10:17 AM
03-13-2006 07:46 AM
Suresh,
I think you are going to find after you install the DirectX Software Development Kit (SDK) the the SDK will allow you to write a Visual Basic program that will return 1 image at a time from your USB camera. I believe that if you read all of the documenatation that comes with the DirectX SDK you will find that there is a way to get images from your USB camera in the form of a 2-Dimensional Array. If you get the images in this form, then you can use "CWIMAQImage.ArrayToImage" to convert the 2D Array into an IMAQ Image type.
Lorne Hengst
Application Engineer
National Instruments
03-13-2006 09:23 AM
03-14-2006 10:05 AM
Suresh,
Let's continue this discussion on the thread below...
Coordinate Transfer problems in VB