필터 지우기
필터 지우기

How to generate C code from Simscape

조회 수: 12 (최근 30일)
Majid Fard
Majid Fard 2019년 10월 29일
답변: Vimal Rathod 2019년 11월 12일
I have built up a power system model that only contains Simscape blcoks (e.g. Transmission PI model, voltage source). Is it possible to compile this simscape model to C code? later I would like to run the C coe in Dspace hardware in loop simulator?
This is quite straighforward if the model only consists of normal simulink block but it seems it wont work as easy as that for physical blocks.
Any help is much appreciated.

답변 (1개)

Vimal Rathod
Vimal Rathod 2019년 11월 12일
Hi,
You could use simulink coder to generate C code from simulink as well as simscape models. The physical models will be coded according to the equations which describe their attributes.
You could refer to the following link for additional details on code generation on simscape and its limitations.
Use the above link and the links inside it to leverage the contents about simscape.

카테고리

Help CenterFile Exchange에서 Converters (High Power)에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by