필터 지우기
필터 지우기

sample time in c-mex function

조회 수: 3 (최근 30일)
Jagmohan singh
Jagmohan singh 2012년 9월 3일
Hello, While executing a c-mex function I get algebriac loop in my simulink model. When I run this s-function individually by creating a simple s-function block and providing inputs using source blocks. Can anyone suggest me what am I doing wrong while defining s-function which leads to such kind of error? in mdlinitializes I am defining sample time as
ssSetSampleTime(S, 0, INHERITED_SAMPLE_TIME)
Thanks....

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 9월 4일
Do you have a feedback loop in your model? This technical solution may help you understand the problem: What are algebraic loops in Simulink and how do I solve them?

추가 답변 (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