Why can I not specify a bus to have infinite sample time (constant)?

조회 수: 3 (최근 30일)
max.s
max.s 2020년 7월 29일
댓글: max.s 2020년 10월 26일
Please have a look at the attached example.
I have a bus in which one element is always constant. I'd like to enforce / reinforce that property by setting the sample time on the bus element out block of the signal to inf, which produces the error:
In '<hidden_signal_specification_block> inserted for "In.const" (sample/Subsystem1/Bus Element In)', the parameter 'SampleTime' must be real and finite. Constant (inf) sample time is not allowed.
What's the explanation for this error and what should I do to fix it?

답변 (1개)

Urmila Rajpurohith
Urmila Rajpurohith 2020년 10월 23일
Hi
From the error message i am assuming that the block is expecting the sample time which is real and finite.
For a block to allow constant sample time, it should hold the following conditions
  • The block has no continuous or discrete states.
  • The block does not drive an output port of a conditionally executed subsystem
For more information on Types of Sample time refer to the below documentation:
Hope this helps!
  댓글 수: 1
max.s
max.s 2020년 10월 26일
But AFAIK the gain block doesn't have continuous or discrete states, it should be able to perform normally on a constant input. Your information makes sense but I'm having trouble to understand how this applies to this simple model.

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

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by