dc source and load values
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Troubleshooting についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!