필터 지우기
필터 지우기

How to implement this logic in Simulink?

조회 수: 1 (최근 30일)
Wenlin
Wenlin 2022년 4월 12일
답변: mark li 2022년 4월 13일
I'm trying to set up a battery system such that:
  • Battery is discharged with current input 1 until it reaches the minimum voltage
  • Once Vmin is reached, it switches to input 2 & start charging the battery until it reaches the maximum voltage
  • Once Vmax is reached, it swiches to input 1 & start discharging the battery
I want this cycle to repeat until after a certain number of cycles.
I was able to set the input so they run cyclicly during the simulation, but couldn't figure out how to set up the switching. I think it may use some edge detection or enabled subsystems but couldn't think of a way to make it work. Would really appreciate it if someone could give me a hint.

답변 (1개)

mark li
mark li 2022년 4월 13일
There is a simple demo:

카테고리

Help CenterFile Exchange에서 Propulsion and Power Systems에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by