Sample time of function call subsystem in state chart

조회 수: 6 (최근 30일)
Useok
Useok 2013년 7월 11일
댓글: snow John 2019년 6월 6일
Hello.
I'm trying to make a program operated in two states.
As you can see in the figure, there is two states and each states have its own algorithm embedded in simulink function block.
The algorithm consist of several blocks with different sampling time using rate transition blocks.
However, there is simultion error with function call in state chart describing 'Only constant (inf) or inherited (-1) sample times are allowed in function call subsystem ~~'.
Is it impossible to implement the algorithm with various sampling time into the function call subsystem in the state chart?
  댓글 수: 1
snow John
snow John 2019년 6월 6일
Hello sir,
I encountered the same problem recently,Can you tell me how to fix it?
I am looking for your help.
Best regards!
-John

댓글을 달려면 로그인하십시오.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 7월 11일
The error is basically complaining that in the Simulink Functions 'Homing' and 'Operating', you have non-constant or non-inherited sample times. I don't think there is a way around this limitation.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by