How can I use an input to change the initial condition of an integrator block in Simulink?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a Simulink model which runs under a third party software which has fixed inputs. One of the inputs specifies an initial value for a variable.
When I built the model the initial condition of the integrator block was specified with a variable in the initialization m-file. Now, the other software requires that the value must come from an input. How it can be done?
0 Kommentare
Antworten (1)
Jason Moore
am 7 Feb. 2015
If you right click on the integrator block and go to block parameters there is an option for initial condition source. Change this from internal to external and you will now have an inport for the block to feed in the initial condition.
1 Kommentar
Vijil Kotherikunnummal
am 17 Apr. 2020
Sir, how can I change the initial condition through an m-script?
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!