필터 지우기
필터 지우기

How to set multiple ports for a step input block

조회 수: 8 (최근 30일)
Teo Samuel
Teo Samuel 2012년 3월 8일
Hi all,
Is it possible to set multiple ports for a step input block? I am tying to run two models with PID controller in simulink and I need two different step signals to be used as the set input for both models.
It is troublesome by using two step signal blocks as I need to set the final value of the signals seperately. So how can I set the final value of the two signal in one identical parameter setting GUI? Is it possible?
Please advice. Thank you very much.
Regards

채택된 답변

Jarrod Rivituso
Jarrod Rivituso 2012년 3월 9일
I believe you can use a single Step block, and then for the various parameters (such as the Final Value parameter) you can set a vector, such as
[-1 1]
This will cause the Step block to output a vector signal, and you can demux the signal to get each element (or use the Selector block).
  댓글 수: 2
Teo Samuel
Teo Samuel 2012년 3월 9일
Great answer, thank you so much...By the way, do you know is there any way to reset the value in the step signal block if a certain condition is met in the simulink? Thank you very much.
Regards
Jarrod Rivituso
Jarrod Rivituso 2012년 3월 12일
Hi Teo,
I would use the Relational Operator block and perform the logic myself, if I was doing something like that.
Hope this helps!
-Jarrod

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by