SIMSCAPE INPUT FOR SOURCE CODE
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Yusuf Selim KARATAS
am 24 Dez. 2019
Beantwortet: David John
am 16 Jan. 2020
Hello eveyone,
I want to use a generate a temperature dependent voltage source in simscape by using dc voltage source. Temperature parameter is dynamic so i need to take that as input to source code for the voltage source ?
Can you help me defining the temperature and taking it as input to source code of the voltage source?
Thanks
0 Kommentare
Akzeptierte Antwort
David John
am 16 Jan. 2020
The most straightforward way to do this is to write your own custom block using the open source code of the Controlled Voltage Source as a starting point. Instead of the input vT, you could have a thermal node and make the voltage equation dependent on the temperature. If you define:
nodes
H = foundation.thermal.thermal;
end
then the temperature may be accessed using H.T, which may be used in the equations section.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Electrical Sensors finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!