Logging data to mat files with Simulink Coder

Hi everyone!
My problem is the following; I have my controller in Simulink and a numerical model in vc++. So I generate a vc++ project and build the two together. This works fine. However, I would like to log data from the controller input and outputs to mat files. Is this possible?
I would really appreciate any tips :-)

1 comentario

Lio
Lio el 21 de En. de 2014
I have the same problem. I'll be glad to know the answer.

Iniciar sesión para comentar.

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 25 de Mzo. de 2014

0 votos

You can write custom C-code to write to a MAT-file and integrate it into your VC++ application.

1 comentario

Lio
Lio el 24 de Abr. de 2014
Editada: Lio el 24 de Abr. de 2014
How do i write a c-code that saves structures (and nested structures) to MAT file? I know that it possible for arrays, but I don't know how to do it for structures.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 20 de En. de 2014

Editada:

Lio
el 24 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by