10-17-2011 09:25 PM
Hi everybody.
Im trying to make a 3d image controlled by an accelerometer. I´m currently working with two potenciometers to simulate the accelerometer and I just cant get the x asis to have an effect on the image at all.
The y axis functions just fine.
I am using an arduino to acquire de analog signal from the two pots. I have already checked and I have both measurements donde correctly, it just doesn´t plot anything on y.
Im very new at Labview I hope someone can help me out.
Thanks a lot.
Eugenio A
10-17-2011 09:53 PM
Eugenio,
Quote from the help for Set Rotation.vi:
"Clears any rotations previously applied to an object in a 3D scene and rotates the object by the values Axis and Angle. This VI performs an absolute rotation from the object's initial position."
Take a look at the Rotate Object.vi which does a relative rotation from the current position to see if it will do what you want.
Lynn
10-17-2011 09:54 PM
I forgot to mention that you have very nice dial indicators.
Lynn
10-17-2011 10:36 PM
Thanks for your answer!
I have already tried using the relative rotation VI and it did plot on both axis pretty well. The problem with the relative position is that whenever the accelerometer isn´t in a straight position (0 degrees on x and 0 degrees on y) it just keeps turning and turning, not showing the angles given by the accelerometer (because it adds the present value with the last value).
How can I solve this?
I´m sorry if it is hard to understand me but english isn´t my first language. 😉
pd. The dial indicators came with the arduino library hehe
10-18-2011 12:21 AM
Got it solved by using the first vi with absolute position and the second one with relative position.
Thanks!