This paper discusses several approaches for calling shared libraries from Simulink models
Eight ways to implement an Extended Kalman Filter as a Simulink block
A simple C S-function which reads data from a file during simulation.
Simple EtherCAT Master Block SFunction for Raspberry Pi
Level-2 M-file S-function that acts as a ZOH sampler with sample times specified as a block input.
Simple Digital Out SFunction example block showing how to use the WiringPi library
Quadrature encoder route implemented with interrupts with WiringPi
This file contains a guide_simulink_sfunction interface. It is a fairly easy and simple application.
Use a single Simulink s-function block to access multiple s-functions.
DC Motor Driver Block using Soft PWM of WiringPi Library
This application shows how models based on a system of ODEs are simulated.
Simple Soft PWM driver block example using WirngPi
Convert a subsystem to an s-function via the MATLAB command line.
Level-2 m-code S-Function that acts as a pulse generator with jitter around a nominal period.
Raspberry Pi MPU6050 SFunction with I2C Communication using WiringPiI2C
Version 1.2.0.0
Joshua HurstRaspberry Pi SFunction to obtain MPU6050 data using the C-library WiringPiI2C.
Solution of Differential Equations with MATLAB & Simulink: Lorenz Attractor Case Study
Version 1.2.0.1
Simulink DudeSimulink design pattern for solving differential equations, visualize results in MATLAB graphics
V1.0.0
Simulink block to generate Hysteresis loop
nonlinear model constructed for use with the s-function block, in addition to file linearization
Example of a Mass Spring Damper System by means of a level-2 Matlab S-Function in order to use functions such as loading an *.xml file.
S-function to use a joystick in Simulink (Windows only)
C-mex S-function interface to Natural Point Motive (Optitrack) in Simulink by Or Hirshfeld
Version 1.0.0.0
Or HirshfeldC-mex S-function interface to Natural Point Motive (Optitrack) in Simulink by Or Hirshfeld
tanque de calentamiento con agitación continua (heating tank with continuous agitation)
Version 1.0.0.0
John Caipa RoldanModelo no lineal en s-function del proceso y linealizacion
s-function del modelo no lineal y linealización
The S-function blocks read a buffer of values and outputs the maxima and minima value in the buffer
Detect change in a signal and output a function call that can drive downstream dependant blocks
Solution of differential equation through S-Function
Customized App Wizard for creating MEX S-Functions files in Visual Studio.Net for Simulink
Calculate time for 1 loop iteration in Arduino
netHAT NXHAT52-RTE EtherCAT Slave Driver Block SFunction for Raspberry Pi
S-function simulink error: during flag=1 call must be a real vector of length 4.
This simple example shows how you can take a Simulink signal (Video feed), and disply it in a GUI.
This example illustrates the use of Simulink Level-2 S-functions to solve Index-I DAEs