How to state initial values for a subsystem block
How to state initial values for a subsystem block
(OP)
Hey Everyone I have a problem. Was modelling a system but I need to be able to state the initial values for a subsystem block. How do I go about doing it in Simulink?
RE: How to state initial values for a subsystem block
Could you be more specific?
RE: How to state initial values for a subsystem block
the gains are in the form of signal from another block. the only way i find i could perhaps do this without losing the data when simulink stops and resets all parameters and variables is to somehow store the gains in the 'initial condition' parameter in one of the standard simulink block i am using (memory, in this case). using callback function i could change the 'initial condition' in that block by clicking on the checkbox of my masked subsystem checkbox during simulink on the fly. but what i cannot do is to grap the latest gain signal and use those values (as vector) in as the 'initial condition' for the memory block.
have looked at various ways to do that, not sure if there's actually a way. if so, and someone could help.. very very much appreciated. thanks