Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Andre
Andre am 5 Aug. 2011
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

Antworten (1)

Desiree
Desiree am 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.

Kategorien

Mehr zu Block and Blockset Authoring finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by