필터 지우기
필터 지우기

Generate DLL from Simulink model

조회 수: 258 (최근 30일)
PEF
PEF 2013년 10월 5일
댓글: YIZA SRIKANTH REDDY 2022년 10월 7일
Hallo everybody,
I am about to start working on an interface between Simulink modules and GH BLADED, software tailored to simulate the dynamic behavior of wind turbines. Within Simulink, I plan to develop some control strategies. This control model should be then ported as DLL to BLADED and actually command the reaction of the turbine to external inputs.
I'd appreciate knowing if any of you may address me to the easier procedure to generate DLL out of a Simulink model. At the time of writing, I do not have a clear idea about the best way to go.
Perhaps, it would be an option to generate a .tlc file, suited only for BLADED, exactly as it happens with LabView (but LabView already supports such a tlc file, BLADED so far does not).
I really thank you in advance for considering my request.
Kindest regards, FPe
  댓글 수: 4
Andrea Verdicchio
Andrea Verdicchio 2021년 5월 4일
Hello Sven,
I try to do the same job as you. However, I have various difficulties. Have you succeeded? do you have any documents that I can read or there is a documented process?
Could you help me? Please
Thank you for your time.
Regards,
Andrea Verdicchio
Olatunji Fulani
Olatunji Fulani 2021년 6월 12일
Hello Sven,
Were you able to resolve your SIMULINK-DLL-PSCAD issues? I'd like to know more as I am having similar problems. Thanks.

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

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 10월 7일
You can use ert_shrlib.tlc if you have the Embedded Coder product to generate generic DLLs from your Simulink model. The relevant documentation is here: Shared Object Libraries.
  댓글 수: 5
Tusharkumar Jivani
Tusharkumar Jivani 2017년 8월 1일
Hi everyone,
I would like to generate DLL from Simulink model (which is basically a controller). To do so, I have selected generic real time target (grt.tlc) from modal configuration parameters and build the model. Afterall, It has successfuly generated c files and directories.
Now, I would like to write a wrapper file to allow it to be called from external functions. For that I need grt_main.c file, and according to attached documentation (simulink_dll.pdf)It can be found in ($MATLABHOME)\rtw\c\grt directory. However, I am not able to find updated grt_main.c file inside this directory and It shows only previous files. So could you please provide me some suggestions?
Thank you so much in advance.
best regards, Tushar
Sameer Gadekar
Sameer Gadekar 2021년 1월 20일
@Tusharkumar Jivani Are you able to find solution for this ? Can you please share your solution ?

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

추가 답변 (1개)

Ivo Houtzager
Ivo Houtzager 2020년 8월 11일
There is a Simulink controller design example to create DLL for GH Bladed and OpenFAST in github, see
  댓글 수: 2
Rasmus Visgaard
Rasmus Visgaard 2021년 3월 24일
Hi Ivo, thanks for the link. This seems to be tailored for an earlier version of Bladed. Are you aware if something has been made for later vesions of Bladed such as v4.10?
YIZA SRIKANTH REDDY
YIZA SRIKANTH REDDY 2022년 10월 7일
Hello lvo
Actually i am facing problem to generate .DLL form the model from above link , enenthough model is build successfully. In build directory some .c and.h files were generated, after that how we would gnerate .dll ?
please help me in this. thmaks inadvance

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

카테고리

Help CenterFile 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