What functionality is afforded by ssSetModel​ReferenceS​ampleTimeD​efaultInhe​ritance and ssSetModel​ReferenceS​ampleTimeD​isallowInh​eritance in C MEX S-functions in Simulink?

조회 수: 1 (최근 30일)
Some C MEX S-functions provided with Simulink use the ssSetModelReferenceSampleTimeDefaultInheritance and ssSetModelReferenceSampleTimeDisallowInheritance macros in their SampleTime routines. I would like further documentation on the functionality afforded by these macros.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This bug has been fixed in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
Documentation on the ssSetModelReferenceSampleTimeDefaultInheritance and ssSetModelReferenceSampleTimeDisallowInheritance macros is missing from Simulink documentation.
Here is additional information on these macros:
The ssSetModelReferenceSampleTimeDefaultInheritance and ssSetModelReferenceSampleTimeDisallowInheritance macros are alternatives to the ssSetModelReferenceSampleTimeInheritanceRule macro. The following expressions are equivalent:
ssSetModelReferenceSampleTimeDefaultInheritance(S);
ssSetModelReferenceSampleTimeInheritanceRule(S, USE_DEFAULT_FOR_DISCRETE_INHERITANCE);
Likewise, the following expressions are also equivalent:
ssSetModelReferenceSampleTimeDisallowInheritance(S);
ssSetModelReferenceSampleTimeInheritanceRule(S, DISALLOW_SAMPLE_TIME_INHERITANCE);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by