Detect change to function-call S-Function
Version 1.0.0.0 (12.6 KB) by
David Manegold
Detect change in a signal and output a function call that can drive downstream dependant blocks
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 (2023). 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 LinuxCategories
Find more on Block Authoring and Simulation Integration in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |