Using the C Function Block to Integrate Custom Code in Simulink

preview_player
Показать описание
Learn about the C Function block, which helps integrate external C code directly into a Simulink® block. An example will demonstrate how to use it.

--------------------------------------------------------------------------------------------------------

© 2020 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
Рекомендации по теме
Комментарии
Автор

Function definition if you run in matlab :

mandankunju
Автор

Is there any way to do multiple calls to a c library from within Simulink? Ive tried adding multiple c-function blocks but only the fist one (alphabetically) executes properly?

beng
Автор

if you make a video please show all the code to get an overview of the programm. Thanks :)

nicoippoliti
Автор

i use Simulink.importExternalCTypes(modelName), Unrecognized function or variable 'modelName'.

binxia
Автор

Care to show where the function is defined?

samgeorge
Автор

Waste video.... what is the value of modelName...?

shivashanker