05-30-2012 11:07 AM
Hi all,
I am new in Labview, and i need to manage a small project.
This project is the next:
Through a video frame, i will acquire an object.
This object will be detected in a specific ROI and i will obtain the centroid.
Untill here, no problems
My main problem is how to comunicate the coordonates of the centroid to motors, to assume a tracking of the object through the webcam in X,Y axis.
Thanks for your help and support.
Regards,
Christophe
05-30-2012 11:23 AM
Subtract the desired location from the current location to get the error. Multiply the error by a constant to get the motor output. Repeat in a fast loop.
Larger constants give you faster motion, but too large will start oscillation and possibly mess up your hardware.
Bruce
05-30-2012 01:00 PM
Hello Bruce,
Thank you for your point of view.
In fact, i know that because i was working in another software (Scilab).
My problem is how to use Labview...i don't know and because it's an obligation to use it, i need to go straight.
Regards and thank you
Christophe