Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

visual studio 2005 and machine vision problem

hi, here is my problem.
I want to grab/snap a pciture and then analyze the image to find the position of an object in the image.
the grab and the analysis are working independently, but once I wan to integrate these two, there will be an error saying that there is an unhandling error, the error code is not shown as in the manual.
1. when I use the examples, the visual studio will upgrade the examples and then do the work.
2. I use detectcircles function.
3. what I want to do is : capturing the image and immediately processing it and find the position of the object and then passing through an controller to control the motion of the object.
my question is : can we do the real time work using vb and activex provided by NI?
                          what is the problem when I integrated the two projects together there is gonna be an unhandling error?
I found many seperate examples on this, can you provide one example that can acquire the image and then process it?
thanks
yanbo
0 Kudos
Message 1 of 2
(3,084 Views)

Hi yanbo,

If I understand the problem correctly the error is occurring because the VI’s used during acquisition is actually a different data type then the data type used by the processing functions.  This is explained in this KB.  

One way to get around this is to convert the data type as explained here.  

Once you have converted your image to the Vision data type you can perform your image processing.

I hope this helps,

Gavin

Message Edited by GiGe on 05-14-2007 04:08 PM

0 Kudos
Message 2 of 2
(3,065 Views)