Logic Design and button control

I have to do a on of button control with producing 0 1 signal but i have to use functioncall parameter and logic
there is no examples in mathworks simulink could you help me

답변 (1개)

Atharva
Atharva 2023년 9월 13일

0 개 추천

Hey Dilara,
I understand that you have to produce 0 1 signal controlled by button and use functional parameter and logic.
  1. Add an Inport Block: Drag and drop an "Inport" block from the Simulink Library Browser into your model. This Inport block will represent the input signal, which will act as a control button (0 for off, 1 for on).
  2. Add a Function-Call Subsystem:
  • Drag and drop a "Subsystems" block from the Simulink Library Browser into your model.
  • Double-click on the subsystem block to open it.
3.Inside the Function-Call Subsystem:
  • Add a "Function-Call Split" block inside the subsystem. This block will split the function call parameter into two cases: 0 and 1.
  • Connect the output of the Inport block to the input of the Function-Call Split block.
  • Add a "Function-Call Generator" block for each case (0 and 1) inside the subsystem. Connect the outputs of the Function-Call Split block to the corresponding generator blocks.
  • Configure each Function-Call Generator block as follows:
  • For the case 0, set the logic to output 0 when called.
  • For the case 1, set the logic to output 1 when called.
4. Outside the Function-Call Subsystem:
  • Connect the outputs of the Function-Call Generator blocks to an "Outport" block each. These Outport blocks represent the final output signals (0 or 1).
I hope this helps!

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

도움말 센터File Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2023년 8월 17일

답변:

2023년 9월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by