S-Function Builder Block referencing .dll

조회 수: 6 (최근 30일)
Erin
Erin 2013년 8월 7일
I am trying to use the S-Function Builder block to incorporate a c++ function in my Simulink model. The c++ function references QTCore4.dll and I am having problems accessing this library. I tried to put it in the "Libraries" section and added my H files to the Includes section.
Is it possible to reference .dll libraries from an S-Function builder block?

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 8월 7일
DLLs are typically only used at run-time, not compile-time (the information you put in the S-function Builder is used to compile the generated S-function). You shouldn't need to specify DLLs in the S-function Builder, but simply make sure that the directory containing the DLL has been added to the System PATH environment variable (note: you will need to restart MATLAB to make sure the new PATH value is picked up. Run "getenv PATH" in MATLAB to see the PATH setting.)

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by