フィルターのクリア

dc source and load values

2 ビュー (過去 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 Center および File ExchangeElectrical Sensors についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by