Calling Shared Libraries from Simulink

Version 5.0 (280 KB) by Mikhail
This paper discusses several approaches for calling shared libraries from Simulink models
Updated 2 May 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This paper describes various approaches for calling shared libraries from Simulink models. Both explicit (load-time) and implicit (run-time) linking is considered.

Cite As

Mikhail (2024). Calling Shared Libraries from Simulink (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Modeling in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

C Function block


Validated with R2019a


Fixed "MATLAB Function" model to work out of the box.

- Validated with R2018b
- Added support for MinGW
- Added description of C Caller block

Update all models to R2017a;
Change wording and add clarifications;
Support code generation.

Validated with MATLAB R2017a

Validated with MATLAB R2016b

Verify with 16a

Updated to R2015a, cosmetic changes.

This Toolbox checkbox keeps poping up

Add information about Embedded Coder

It's not a Toolbox. Very smart to have this checkbox ticked by default..

Add examples for MATLAB Function, MATLAB System, Stateflow

Add more clarifications and links, change wording, more items in TODO.