04-13-2010 07:19 PM
I'm working on developing a NXT robot that can move motors to a given set of coordinates. I am using Labview 8.6. So far I'm using the initialize mouse VI to give the coordinates of the picture that I've pasted onto the Labview front panel. My problem is that I do not know how to make the motors move to these coordinates. I know that I can set the motors to run for a specified time or number of degrees, but I do not know any other way. I've attached the program with the initialize mouse VI to get the coordinates. I am unable to download this onto the NXT. I've also attached the basic program of how we are moving the motors. I think it would be best to combine these some how. Any help is appreciated! Thanks.
04-14-2010 11:14 AM
04-15-2010 03:50 PM
04-16-2010 08:31 AM
04-22-2010 02:34 PM
As in most vision Motion Systems, you will need to consider that the system will need to be calibrated. In your case, pixels to degrees of rotation. First consider the width and height of your clickable picture control. For the sake of discussion, let's say that it is 100x100 pixels. Now you will need to determine the distance that the motors can travel in each axis, in degrees. Lets say 720 degrees (two full rotations).
Position the motors in the upper left corner of the travel area, and zero them out, them move them to the opposite corner, and read the number of degrees. Lets say 720 degrees on X (two full rotations), and 270 (3/4 rotation) on Y. These are the "real world" coordinates that we will convert to pixel counts.
The conversion looks like this: Xd= (X*(720/100)) Yd=(Y*(270/100)
When you click the Upper Left-most pixel in your image (0,0), you will send Xd=(0*(720/100))=0 Yd=(0*(270/100)=0
When you click the Upper (22,77) in your image, you will send Xd=(22*(720/100))=158.4 Deg. Yd=(0*(270/100)=207.9 Deg.
Hope this helps.
04-18-2018 05:50 AM
I am new to the LabVIEW, I am trying to learn basics of it as I do not have much time to spend on learning process but I'm trying my best.......Could you help me by saying How to move the motor to the specific degree I required both in forward as well as backward direction?
For example, If I want to move my arm about 60 degrees and again backward to 45 degree
Thank you in advance
04-19-2018 04:35 PM
To be of further assistance, it would help to learn more about your system.
Also, it may be worth making a new post since this one was made back in 2010, and likely will not get the same visibility.