I have an image on which I need to select points and then use motion control to etch the curve defined by my points. Motion Assistant cannot import my image, so I am building my own interface in LabVIEW.
Here's how I have it working now:
Get the image in LabVIEW
Define the points in LabVIEW
Export them to file
Import the file into the Motion Assistant
Use contouring to smooth things
I usually get the desired curve (near as I can tell without the image) and can begin the etching process.
When I do not get the desired curve, I need to start over and define a few more points in the problem region. This is tedious and not the user friendly UI that a customer would want.
I would like to perform the same or similar interpolation as the Motion Assistant's contouring on my image in LabVIEW then use the motion control VIs to do the etching. Is there a way to do contouring style interpolation?
I tried to use the spline interpolation, but my defined curve often has places where there can be loops (the curve crosses itself) or at least multiple Y points for a single X value (such as vertical lines or double-backs) and the spline interpolation that is included with LabVIEW errors. Is there another way to do it? I mean, I know that it works in the Motion Assistant so I know that there is a way to do it, the real question is how to get at the algorithm that the Motion Assistant uses or something similar.
Thanks,
Bob Young