필터 지우기
필터 지우기

Calling a DLL created from Simulink Coder

조회 수: 1 (최근 30일)
John F
John F 2012년 5월 1일
I have created a Win32 DLL from a Simulink diagram using Simulink Coder and the template ert_shrlib.tlc. I need to specify to another group how to interface and call the function.
I can specify the mapping of Inputs and outputs, but I'm wondering which C-functions to call. I would think calling the MDL_initialize function once and the MDL_step function each time would work. Am I on the right track? thanks!!!

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 5월 3일
Yes, you need to call mdl_initialize once in beginning, mdl_step in for each sample (perhaps in a loop), and mdl_terminate in the end. See the example here for more information.

카테고리

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