Logging data to mat files with Simulink Coder

3 Ansichten (letzte 30 Tage)
Øivind
Øivind am 20 Jan. 2014
Bearbeitet: Lio am 24 Apr. 2014
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 Kommentar
Lio
Lio am 21 Jan. 2014
I have the same problem. I'll be glad to know the answer.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Kaustubha Govind
Kaustubha Govind am 25 Mär. 2014
You can write custom C-code to write to a MAT-file and integrate it into your VC++ application.
  1 Kommentar
Lio
Lio am 24 Apr. 2014
Bearbeitet: Lio am 24 Apr. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by