LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read a magnetometer value of MPU9250 using myRIO

Hi,

I'd like to read a value of a magnetometer of MPU9250 using myRIO.

I built a labview code with reference to arduino library for MPU9250(attached library).

 

(can download the library here: https://learn.sparkfun.com/tutorials/mpu-9150-hookup-guide#installing-the-arduino-library)

 

Now, I can read a value of an acceleration and gyro of MPU9250 in real time, but  value of magnetometer is measured just once, at first loop time. i can't read the value in real time.

I attached the labview code, I ask for your help. thanks

 

image.png

 

 

 

 

 

0 Kudos
Message 1 of 2
(3,906 Views)

is is an old thread but just for the record, the magnetometer AK8963 needs you to read more than 6 bytes. I put 8 bytes to read in the last vi and it sprang to life! Apparently this is in the data sheet of the AK8963. This is a real dog of a thing to get going. See modified attached.

0 Kudos
Message 2 of 2
(2,910 Views)