Clear Filters
Clear Filters

Simulink Mask Editor commands inside S-Function (C/C++) source code ?

2 views (last 30 days)
Hello everybody!
Is it possible to mask a S-Function automatically by adding the Mask Editor commands into the S-Function source code ?
For instance by placing the Mask Editor commands within a special function in the S-Function mdlInitializeSizes() ...
I've created several S-Functions for a nice working Software-Interface. But because every S-Function use a different occupancy, the handling is a bit tricky. The Mask Editor works nice and customise every single S-Function, but it would be great if these Mask Editor commands can be placed into the source code. In other words, i've created a own "toolbox" with serveral "tools", how can i customise these "tools" (s-functions) automatically ?
Best regards!
Andre

Answers (1)

Desiree
Desiree on 5 Aug 2011
You did not specify which exact Mask Editor commands you would like to implement. However basically there are no C code equivalents for Mask Editor commands. If it's possible to do with MATLAB commands one can always use mexCallMATLAB function in the C S-Function, however I think doing this over the mask itself would be more elegant.

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!