Simulink Mask Editor commands inside S-Function (C/C++) source code ?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Author Block Masks에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!