From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Sparkfun 9DOF sensing roll pitch and yaw, displaying figure in labview.

Solved!
Go to solution

hi people, i'm currently doing a project , using sparkfun 9DOF to sense the motion of its roll pitch and yaw, displaying the figures in labview. 

however, i don't know how the connection of the yaw pitch and roll would be. 

Capture5.PNG

 

 

can anyone guide me on how should i connect it in order to show its yaw pitch and roll ?

 

thanks alot 😃

0 Kudos
Message 1 of 23
(11,964 Views)

Hi Sze,

 

You can have a look at this example code for a starters:

 

Razor Imu Example

 

Taken from this community page

 

Br,

 

/Roger

 

0 Kudos
Message 2 of 23
(11,949 Views)

show.PNG

 

i did smth like this , but when i run it, it doesnt seems to read the data from my imu sparkfun 9DOF =( 

is there something wrong with this ?

0 Kudos
Message 3 of 23
(11,947 Views)

Hi Sze,

 

You need to open the com port to read from the IMU. Check my example code and go from there.

 

Br,

 

/Roger

 

0 Kudos
Message 4 of 23
(11,945 Views)

means i have to insert the visa serial into my block diagram ?

0 Kudos
Message 5 of 23
(11,934 Views)
Solution
Accepted by topic author Sze Pei

Hi Sze,

 

Download the example IMU program from this community page:

https://decibel.ni.com/content/docs/DOC-14911

 

Then open up the labview project called:

IMUexample.lvproj

 

And double click the VI called

TestVISerialIMU.vi

 

Then you can start experiment with the program/project that looks like this:

ImuExample.JPG

 

The "Mode Select" can you use to change between reading from a prerecorded text file or to read from the VISA serial.

 

Hope this helps? 🙂

 

Br,

 

/Roger

 

Message 6 of 23
(11,930 Views)

4.PNG

 

i tried doing the same thing for this, however, i cant get this control

can you explain to me how this control work and what is it ?

thanks so much !

you really helped me alot.

0 Kudos
Message 7 of 23
(11,908 Views)

Hi again,

 

Those 'property nodes' will reset/remove/clear the values stored in the graph that display the IMU data. It does that by inputting an empty array, thus the graph buffer will be empty.

 

It is good practise to reset/remove/clear graphs when the program start to run,

 

Br,

 

/Roger

 

0 Kudos
Message 8 of 23
(11,896 Views)

21.PNG

 

my supervisor wanted me to add a altitude indicator onto my project . 

 

24.PNG

 

can i know how i should connect it ?

0 Kudos
Message 9 of 23
(11,867 Views)

Hi again Sze,

 

Attached an example of a artificial horizon to your VI. See if it works for you.

 

Br,

 

/Roger

 

0 Kudos
Message 10 of 23
(11,859 Views)