How to build multiple S-Functions from S-Function Builder at once
1 view (last 30 days)
Show older comments
My simulink model contains many S-Functions build by S-Function Builders. But every time I change something, I have to click each S-Function Builder block to re-build. Is there a way I can re-build all the S-Functions of my model at once? (maybe from command window)
Thanks,
2 Comments
Accepted Answer
Kaustubha Govind
on 29 Mar 2012
You could write MATLAB code that loops over all the S-Function Builder blocks in your model and builds them using the commands listed on this solution: <http://www.mathworks.com/support/solutions/en/data/1-AWIVV1/index.html?product=ML&solution=1-AWIVV1>
You can find S-Function Builder blocks in your model using:
builderBlocks = find_system(bdroot, 'LookUnderMasks', 'all', ...
'BlockType','S-Function', 'MaskType', 'S-Function Builder');
4 Comments
Kaustubha Govind
on 2 Apr 2012
Sorry, I'm not familiar with the S-Function Builder command-line API (I did a web search to find that solution I pointed to). You could try contacting MathWorks Tech Support if you have a license that's under maintenance.
More Answers (0)
See Also
Categories
Find more on Configure Block Features for MATLAB S-Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!