File Exchange

image thumbnail

C_Code_Integration

version 3.0 (24.8 MB) by Sebastien Dupertuis
C Code Integration in MATLAB and Simulink to Control an External Interface.

15 Downloads

Updated 25 May 2020

From GitHub

View Version History

View license on GitHub

The goal of this demo is to showcase integration of C code in MATLAB and Simulink. A C# interface of a parking meter has some emulated HW registers that can be accessed through a shared memory area in Windows. The low level C drivers are used in MATLAB and Simulink via respectively MEX and C-Caller or S-Function import mechanisms. The algorithms in MATLAB and Simulink control the C# App that is just used as a user interface without any intelligence. C code generation can be done out of the entire MATLAB and Simulink projects to build standalone executables. In the MATLAB implementation, there is also the possibility to use an App of the parking Meter done with the App Designer.

Cite As

Sebastien Dupertuis (2021). C_Code_Integration (https://github.com/mathworks/C_Code_Integration/releases/tag/V3.0), GitHub. Retrieved .

Comments and Ratings (1)

Hugo de Kock

MATLAB Release Compatibility
Created with R2019b
Compatible with R2019b and later releases
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Seven_Segment_Displays

Community Treasure Hunt

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

Start Hunting!