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

1 回表示 (過去 30 日間)
Andre
Andre 2011 年 8 月 5 日
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

回答 (1 件)

Desiree
Desiree 2011 年 8 月 5 日
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.

カテゴリ

Help Center および File ExchangeAuthor Block Masks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by