Detect change to function-call S-Function

Detect change in a signal and output a function call that can drive downstream dependant blocks
288 Downloads
Updated 9 May 2011

View License

The "Detect Change" block works great for outputting a Simulink Signal, but oftentimes you may wish to output function-call to trigger some downstream logic of function-called subsystems. Here is an S-Function that does just that

(Ensure your compiler is set up properly)

mex sfun_detect2funcall.c
sim Model_detect2funcall

Cite As

David Manegold (2024). Detect change to function-call S-Function (https://www.mathworks.com/matlabcentral/fileexchange/31384-detect-change-to-function-call-s-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Block and Blockset Authoring 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
1.0.0.0