Azzera filtri
Azzera filtri

dc source and load values

2 visualizzazioni (ultimi 30 giorni)
manu vincent
manu vincent il 9 Dic 2020
Risposto: Ashok Natarajan il 17 Dic 2020
Hi ,
i m new to matlab simulink . I have to simulate a dc converter but having some diificulty. i am currently usng a constant dc battery and constant load resister. but i want to plot an efficiency vs input power curve for different voltages and load. anyboady know how can i give a range of values for my input source and load without causing any major changess to my circuit. Also how can i change the time axis on my scope to some specifies range of values.
thanks.

Risposte (1)

Ashok Natarajan
Ashok Natarajan il 17 Dic 2020
It is my understanding that you are trying to model a circuit in Simscape and want to change the Block parameters of Input source block with a set of values and verify the output.
Please refer to this Changing Simscape run time parameter documentation to know how to change the Constant voltage parameter in DC voltage block in the shipped model ssc_dcmotor
If you wish to change the values of Constant voltage parameter in DC voltage block programmatically in every simulation run, please refer the code below:
clear all
Voltage_inputs=[5 1.5 2.5 5 1.5]; %Provide a set of 5 voltage values
%Open the model ssc_dcmotor and Specify the Constant voltage parameter value for the DC voltage block as the variable vDC as given in the documentation
for i=1:5
vDC=Voltage_inputs(i); %Get one voltage value per simulation and store it in vDC
sim('ssc_dcmotor'); %Simulate the model
end
Also, if you want to change the time parameter in Scope block, navigate to the scope block menu, select View > Configuration Properties >Time. Refer the Scope block documentation to change the Time and other parameters in the scope block

Categorie

Scopri di più su Electrical Sensors in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by