Skip to content

R2023b: C Code Integration in MATLAB and Simulink to Control an App

Latest
Compare
Choose a tag to compare
@Sebdee Sebdee released this 20 Feb 15:45
· 1 commit to master since this release

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. Moreover, the MATLAB implementation can be connected to Jenkins for automation of testing and reporting.

ParkingMeter