02-27-2015 08:47 AM
Hello guys, I'm trying to develop an app where I specify certain distance (in pixels or similar) so an image or object can move in the Y and X axis and can also rotate. For example Move 9 , Rotate 50, Move Backwards 39. Is this possible in Labview and if so what's the easiest way in your opinion I can accomplish it?. I appreciate any link or info you can provide me so I can start with the development, thanks in advanced !
02-27-2015 09:22 AM
@LAJohn wrote:
Hello guys, I'm trying to develop an app where I specify certain distance (in pixels or similar) so an image or object can move in the Y and X axis and can also rotate. For example Move 9 , Rotate 50, Move Backwards 39. Is this possible in Labview and if so what's the easiest way in your opinion I can accomplish it?. I appreciate any link or info you can provide me so I can start with the development, thanks in advanced !
Look at the following LabVIEW example
Help -> Find Example.. -> Building User Interfaces -> Generating 2D Pictures -> 2d Serial Robot Animation.vi
Ben64
02-27-2015 03:11 PM
Also look at the Generating 3D Pictures examples. LabVIEW gives you VIs to generate simple objects (Boxes, Cones, Cylinders, Spheres), so this might get you started. The Order of Transformations example shows how some of the LabVIEW tools are used.
Bob Schor
02-28-2015 10:41 PM
Thanks bob, I'm already using the labview example that creates an object and transforms it, but I can't manage to rotate an object and keep it in the same angle when moving forward, for example I rotate a box but when I move it in the X axis it doesn't respect the new angle it has and just moves forward with the angle of the object instead of moving forward in the new angle it has.
03-01-2015 08:07 AM
If I understand your problem correctly, what you need to do is transform the distance you want your object to move "forward" into X and Y movements. the easiest way of doing it (that I know of) will be to use "Polar To Re/Im" from numeric>complex.
Just throw in the distance you want the object to move as "r" and the object's rotation angle (in radians) as "theta", and you'll get the neccessary movement in respect to X and Y.
So if your object is rotated 45 degrees, and you want it to move 10 cm forward:
r=10
theta=pi/4
then you'll get
X=7.07107
Y=7.07107
03-01-2015 10:38 AM
@robertlks wrote:
Thanks bob, I'm already using the labview example that creates an object and transforms it, but I can't manage to rotate an object and keep it in the same angle when moving forward, for example I rotate a box but when I move it in the X axis it doesn't respect the new angle it has and just moves forward with the angle of the object instead of moving forward in the new angle it has.
I think it is hopeless for us to help you unless you are more specific. Currently, there is not enough information given.
03-01-2015 12:28 PM
04-24-2018 01:39 PM
good afternoon Bob. I am a math professor at miami dade college and i want to introduce the rotational matrices in my class of linear algebra through robotics.
the question is: how can i paint a link and a rotational joint, connect them and simulate different rotations in labView.
i know that labView has a simulation module but i dont have any ideas.
thank you very much.
manolo