Logging data to mat files with Simulink Coder

조회 수: 9 (최근 30일)
Øivind
Øivind 2014년 1월 20일
편집: Lio 2014년 4월 24일
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
Lio
Lio 2014년 1월 21일
I have the same problem. I'll be glad to know the answer.

댓글을 달려면 로그인하십시오.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2014년 3월 25일
You can write custom C-code to write to a MAT-file and integrate it into your VC++ application.
  댓글 수: 1
Lio
Lio 2014년 4월 24일
편집: Lio 2014년 4월 24일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by