How to use the Assignment block?

조회 수: 2 (최근 30일)
Vinayak Kamat
Vinayak Kamat 2019년 4월 12일
답변: Mark McBroom 2019년 4월 15일
Hi guys,
I have been trying to replace the blocks used in the right half part of the snip shown below with the Assignment block. But I am not sure of how to use the initialisation input signal(Y0) to this block, as my input and the initialisation in this case seem to be the same.
Thanks in advance for your response.
Capture.PNG
  댓글 수: 2
madhan ravi
madhan ravi 2019년 4월 12일
편집: madhan ravi 2019년 4월 12일
Which is y0 ? What are you trying to do? More description needed.
Vinayak Kamat
Vinayak Kamat 2019년 4월 12일
y0 is the initialisation input signal in the Simulink Assignment block.
To be precise, the signal I receive after the product block has to be routed to the one of the two outputs either CW or ACW outports as seen in the snip. If the output from the product block is >0, the signal must be routed to CW outport, otherwise to the ACW outport.

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

답변 (1개)

Mark McBroom
Mark McBroom 2019년 4월 15일
I thing the proper modeling pattern for this case would be an "If Subsystem" connected to two "If-Action" subsystems. If condition is true, one subsystem will be activated which will write to CW port, else other subsystem will write to ACW port. Note that for subsystem that is not active, you can configure it to either hold last value or reset.

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by