Initial State #753
Replies: 3 comments 1 reply
-
If you would like the initial condition response, you need to provide the initial state from which you would like to simulate the system as an argument to
Note, however, that since you are dealing with transfer functions, the "states" of your system are not well-defined. The state space representation of your system has three states (1 from the PID controller A more common response for a transfer function is the step response, which you can obtain using If you really want the initial condition response, change the next to last line of your function to be something like
|
Beta Was this translation helpful? Give feedback.
-
Hi, I have very little knowledge about simulation, and I really don't get why this behavior. If someone with more experience than me could explain how to set this X0 value. Thanks ! |
Beta Was this translation helpful? Give feedback.
-
@Dimethylebutane glad to hear that the simulation example for discrete-continuous systems was useful! you usually don't want to use nonzero initial conditions. usually you are interested in driving your system, starting from zero, to a new desired position. or simulating what happens when a disturbance enters right before the plant. both of those involve zero initial conditions. that said, if all of your systems are state space, then their states are ordered in the order you passed them into |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was trying to test a simple feedback system with PID controller . Simulation can be easily done with the code below. However, I cant figure out how to specify the initial value (e.g. 10...) of response instead of 0 by default. Would you please tell the solution?
Thanks,
Junqi
Beta Was this translation helpful? Give feedback.
All reactions