Using external interface along with model referencing

I have a relatively large model and have tried to use model referencing. I have a target for which i generate and compile code and this seems to work.
However, i have problems getting the external interface to work (Connecting to target). I can connect, but i can only see values for the main model. The referenced models does not go external, when connecting.
Is this expected or is there a way to use external mode with referenced models?

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 8월 8일
According to this page in the documentation:
Simulink Coder builds and Embedded Coder software projects do not support external mode in model reference. If you select the external mode option, it is ignored during code generation.
So it looks like what you see is expected.
If this is a desirable feature for you, please consider submitting an enhancement request by contacting MathWorks Technical Support.

댓글 수: 1

Hi, does anyone know, if the feature of using the External Mode together with referenced models has been added in the mean time, up to Release R2017b? I didn't find anything the the release notes...

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

추가 답변 (2개)

Casper Lyngesen Mogensen
Casper Lyngesen Mogensen 2011년 8월 8일

0 개 추천

I have seen that in the documentation and refused to believe it. With out external mode, debugging is more difficult, especially with larger systems.
I have submitted an enhancement and hopes that this is added soon.
We just have to continue with one large model, as it is now. And yes we do have parts of the model in libraries, but it would be nice to have some parts precompiled..
René
René 2011년 8월 24일

0 개 추천

I also experienced the same problem. I am using dSPACE and without having the possibility to tune the parameters real-time, I cannot use dSPACE for tuning my controllers (for a air pressure controller). This is really annoying, because I adapted my model to use model referencing instead of libraries, to have some advantages with embedded code generation. But this is a real show stopper!
I guess I will have to build my model back to use libraries and accept the disadvantages for setting up a C++ interface description.
Regards,
René

카테고리

도움말 센터File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by