11-28-2007 03:25 PM
11-29-2007 09:39 PM
Hi Edward,
Are you trying to use the Grab example thats ships with the NI-IMAQ for IEEE-1394 driver?
Here are some things you can try:
1. Make sure that MAX is not using the camera when you try the VB/VC example. (you can close MAX just to be sure)
2. Make sure that the camera is associated with the Legacy NI-IMAQ IEEE1394 driver (and not the NI-IMAQdx driver) in MAX.
Please let me know if these suggestions help.
Thank You,
Jaidev
11-30-2007 09:41 AM
Hi Jaidev,
Your suggestins are absolutely right! The driver I used is NI-IMAQdx but in the code I use CWIMAQ1394xxxx functions which is wrong. When I try CWIMAQdx.... functions it works!
Thanks a lot!
I have a new problem coming out. I actually have a talk to Evan yestoday. I'm using this line to take an image:(SnapImage is defined as CWIMAQImage)
status = IMAQdxSnapCW(session, SnapImage)
When I process the image with:
CWIMAQVision1.MatchGeometricPattern SnapImage, MatchingTemplate_1, MatchOptions, MatchReport_1
There is a pop up error message: invalid image type. I checked the reference that 'IMAQdxSnapCW' may change the image type 'If the image type does not match the video format of the camera, the function changes the image type to a suitable format.'
What is the solution?
Thanks,
Xin
12-03-2007 05:31 PM
Hi Xin,
Is the MatchingTemplate_1 also a CWIMAQImage? What method are you opening that Image with?
The issue might be that the template and SnapImage might not be the same format. You should try and capture both the template and SnapImage with the same camera.
Let me know if this helps.
Jaidev