how do i use multiple current sources in parallel

3 次查看(过去 30 天)
I have tried connecting two controlled current sources in parallel to battery with switch in between. But switching is not happening? why?

回答(1 个)

Aman Vyas
Aman Vyas 2020-3-27
Hi,
I have checked your model completely and signals from voltage are completely fine.
Voltage starts to increase from 3.3V to some 4V value, and thus as per condition defined in matlab function which states v<3.7 so c1 gets high and current of -3A (in reverse direction) and even after v>3.7 c2 gets high and current of –3 A flows since the circuit and the parameters are totally symmetrical.
You are actually seeing the sum of the two added source and that is constant always.
Alternatively if it doesn’t work try putting relational operator at the gate terminal of the switch and simply compare then and there. You will get better understanding that way. Matlab function used can be removed in this way.
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by