dc source and load values

조회 수: 4 (최근 30일)
manu vincent
manu vincent 2020년 12월 9일
답변: Ashok Natarajan 2020년 12월 17일
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.

답변 (1개)

Ashok Natarajan
Ashok Natarajan 2020년 12월 17일
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

카테고리

Help CenterFile Exchange에서 Electrical Sensors에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by