Filter löschen
Filter löschen

I want to implement a switch which will open or close based on some conditions. Kindly suggest how can I achieve this?

2 Ansichten (letzte 30 Tage)
I have designed two PV system. Second PV will remain disconnected via a switch if first PV can supply the load demand. Second PV will get connected if more power is needed to meet the demand. Now I need to implement a switch which will connect or disconnect based on these conditions.

Antworten (1)

Sam Chak
Sam Chak am 4 Aug. 2023
I think the switch action can be mathematically described by
,
with the state '0' means disconnect, and '1' means 'connect'.
D = 0.5; % demand
P = linspace(0, 1, 10001); % power
S = 1 - heaviside(P - D); % switch
plot(P, S, 'linewidth', 2), grid on, ylim([-0.5 1.5])
xlabel('Power')
xline(D, '-.', {'Demand'})

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by