Nasser,
Thanks.
Post by Nasser M. AbbasiPost by Peter MairhoferHi,
Does anyone know how I can reset the state of a transfer function block
in Simulink (i.e., reset back to the initial conditions)?
I tried using an "Enabled Subsystem" and placing the Transfer Fcn block
there but it seems that the state is not reset when Enable changes ...
Thanks!
I did not know that a transfer function could have a state?
tf is ratio of output to input (in Laplace domain). It has
no state.
The transfer function itself does not have a state, however, when
applying it, of course it must have a state because frequency dependency
= storage of information.
For an electrical circuit, these storage elements are capacitors and
inductors.
When you start a simulation, you need initial conditions for these
storage elements.
Laplace transform (or transfer functions) expect the intial condition to
be the "special" zero initial condition.
And this is what I want: The implicit storage elements (e.g.,
implemented by springs, capacitors, ...) should be reset to their intial
condition of zero.
Post by Nasser M. AbbasiCan you explain what you mean by state of transfer function?
or may be a link that would explain it?
I found it meanwhile
First, you could just rewrite the transfer function in state-space form
(i.e., consisting of integrators in feedback loops). The integrators
represent the storage elements and can be reset.
Second, what I was looking for is not a property of the Enabled
Subsystem but of the "Enable" block inside it: It has "States when
enabling: held/reset". What I was looking for is the option "reset".
Peter