How to open the electrical switch again after it closed

조회 수: 4 (최근 30일)
SmaShBr0ther
SmaShBr0ther 2017년 11월 14일
답변: Sabin 2025년 6월 4일
Hello everybody,
I'm currently modeling a simple eltrical circuit and I've implemented the switch from the electrical foundaiton library. Since the Switch should close and open over time I used the Clock block as the physical signal input. In practise the switch should close after 1 sec. and reopen again after 1.5 sec. The problem I have now is that the switch closes when the time reaches 1 but i don't see any possibility to open the switch again after 1.5 sec.
Is there any solution to my problem?
  댓글 수: 2
Birdman
Birdman 2017년 11월 14일
Can you share your Simulink model(export to R2017a)?
SmaShBr0ther
SmaShBr0ther 2017년 11월 14일
This is just for testing purposes. I already went ahead and implemented a IF-Block to get the needed results. I just feel like there must be a better way.

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

답변 (1개)

Sabin
Sabin 2025년 6월 4일
You can use a Pulse Generator block to control the switch: https://mathworks.com/help/simulink/slref/pulsegenerator.html

카테고리

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