How to configure to generate DLL from SIMULINK and use the DLL

38 ビュー (過去 30 日間)
Dingguo Lu
Dingguo Lu 2016 年 4 月 26 日
回答済み: Arnab Sen 2016 年 4 月 28 日
I try to generate a dll file based on a Simulink model, which is a multiple input and multiple output model. The generated dll file will be integrated in another Simulink model.
1. How shall I set in Coder Generation Options?I am using ert_shrlib.tlc. For the "Interface", do I need to select "Single output/update function“ and "continuous time". The model contains continuous integrator.
2. How can I integrate the generated dll file into another Simulink model? More specifically, how can call the function to get certain outputs. I tried to use"coder.ceval". Since the outputs of the simulink as Step function arguments are configured as pointers, how can I call the function in matlab?

回答 (1 件)

Arnab Sen
Arnab Sen 2016 年 4 月 28 日
Hi Dingguo,
1. For model configuration you can have a look into the demo model 'rtwdemo_shrlib'. For this in MATLAB Command Window execute
>>rtwdemo_shrlib
2. For detail regarding how to create the '.dll' and share that with other models, refer to the following link:

カテゴリ

Help Center および File ExchangeDeployment, 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