use Of constant in simulink

조회 수: 6 (최근 30일)
Alessandro Matteucci
Alessandro Matteucci 2020년 9월 18일
답변: stozaki 2020년 9월 20일
Hey everyone, I’m searching how to use the constant block for introducing a constant degree(angle) in simulink. Thank you for your help
  댓글 수: 3
stozaki
stozaki 2020년 9월 18일
Do you want to set the angle value in the Constant block and set the "angle unit" ?
Alessandro Matteucci
Alessandro Matteucci 2020년 9월 20일
Yes. Thank you.

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

답변 (1개)

stozaki
stozaki 2020년 9월 20일
Hello
Thank you for your reply.
If you give an immediate value to a Constant block, you cannot set the "unit" attribute to that value. If you want to set the "unit" attribute, use the Simulink.Parameter object.
I created a sample model with R2020a. You should open this model and update the model (Ctrl + D). Then you can see that the model has "units" set. At this time, set the output data type of the Constant block to Inherit: Inherit from'Constant value'.
Regards,
stozaki

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by