NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Sze Pei
Posts: 10
0 Kudos
Accepted Solution

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

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 =)

Active Participant
RogerIsaksson
Posts: 418
0 Kudos

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

Hi Sze,

 

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

 

Razor Imu Example

 

Taken from this community page

 

Br,

 

/Roger

 

Member
Sze Pei
Posts: 10
0 Kudos

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

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 ?

Active Participant
RogerIsaksson
Posts: 418
0 Kudos

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

Hi Sze,

 

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

 

Br,

 

/Roger

 

Member
Sze Pei
Posts: 10
0 Kudos

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

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

Active Participant
RogerIsaksson
Posts: 418

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

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

 

Member
Sze Pei
Posts: 10
0 Kudos

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

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.

Active Participant
RogerIsaksson
Posts: 418
0 Kudos

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

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

 

Member
Sze Pei
Posts: 10
0 Kudos

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

21.PNG

 

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

 

24.PNG

 

can i know how i should connect it ?

Active Participant
RogerIsaksson
Posts: 418
0 Kudos

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

Hi again Sze,

 

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

 

Br,

 

/Roger

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page