How can i read MPU6050 (accelerom​eter/gyros​cope) using a simulink and ccs 3.3 in a GUI?

8 次查看(过去 30 天)
Hi, im trying to see the registers value in real time or the value of the MPU6050 via RTDX using simulink
I wanna make a GUI, or use a scope or display in simulink to read the data in real time using RTDX but when i tried doesnt work
when i compilate using the ccs 3.3 without the block of rtdx works fine but i dont know if is reading the data of the MPU6050, for that reason i need put something to see the datas in real time, i put the rtdx to try to see in a GUI but when i put the rtdx block appear the next error in the ccs 3.3.
inside of the block can see that the type of data are single, can i use a scope or display? when i tried, doesnt work
i will put all the programs in that link, have a pdf with examples, the programs that im using, have a .m with all the registers that need execute in the workspace of matlab before to compilate in simulink, a GUI that i try to make... https://www.dropbox.com/s/ksregwucy13g6bu/MPU-6050.rar?dl=0
im using: Simulink (matlab 2012a), Ccs 3.3 (Code Composer Studio, Embedded code library of Texas Instrument), F28027 C2000 Piccolo Launchpad

回答(3 个)

Alfredo GD
Alfredo GD 2015-8-15
Anyone can help?

jifeng rgj
jifeng rgj 2015-9-21
Hi, Your model make a great help to me. I will help you with your question. you can use the Graph in the CCS to see the signal. (1)Add a Buffer Block to the signal in the model; (2)Run the project,Select View---Graph---Time/Frequecy; (3)In the Dialog, Set the Start Address as "&XXXX_Y.XXX",DSP Data Type to "32 float".etc

Mohamed Osama Abozaid
I'am trying to access the drobbox file and it's not there Please add it again.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by