Data Log Simulink Arduino Uno

Hi! I'm using Simulink in external mode with my Arduino Uno in order to read one analog signal. I'm not able to register the history of my data in the Matlab workspace, because the ToWorkspace block logs only the last two values. How can I fix it?

Respuestas (1)

Suze Zhang
Suze Zhang el 9 de Oct. de 2017

0 votos

Hi Giorgio,
Instead of using the "To Workspace" block, you can use "To File" block and store the data in a MAT-file.

3 comentarios

Giorgio Concu
Giorgio Concu el 10 de Oct. de 2017
I already tried but it doesn't work. I fixed it by upgrading MATLAB from 2015b to 2017b. Thank you
Krishnakumar Gopalakrishnan
Krishnakumar Gopalakrishnan el 11 de Dic. de 2017
This does not work for me. Can you please explain further?
Giorgio Concu
Giorgio Concu el 11 de Dic. de 2017
I simply changed MATLAB release: from 2016b included the bug has been fixed.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Oct. de 2017

Comentada:

el 11 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by