I have compiled a Simulink model to a 64-bit dll using the ert_shrlib target in Matlab 2011b, and written a simple C++ script that imports that dll and steps through the model. I've tested the code with a simple model (that doesn't require simstruc.h) and it works. With the full model (that requires simstruc.h) the compiler runs out of heap space, eventhough I use a 64-bit compiler and have increased the heap using the Visual Studio setting /HEAP.
How can I solve this issue?

 채택된 답변

Fabian Jonsson
Fabian Jonsson 2013년 12월 5일

0 개 추천

Found the problem. The compiler couldn't handle some of the code in the simstruc.h. Once I commented those lines out, the compilation succeeded.

추가 답변 (1개)

Upanita Goswami
Upanita Goswami 2016년 7월 15일

0 개 추천

Hi Fabian,
I am running into the same issue. Can you tell me which lines of code you commented out in simstruc.h that resolved the issue?
Thanks, Upanita

카테고리

도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기

제품

질문:

2013년 12월 5일

답변:

2016년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by