04-08-2010 06:46 AM
Hi,
I have a question about the CD linear simulation block under time respons in control, design and simulation toolkit. You can wire initial conditions to this block, but if I connect a second order model, I can still only provide 1 initial condition in stead of 2. If I connect 2 initial conditions it gives me an error that I wired to many. Am i doing something wrong?
Best regards
KF
04-22-2010 03:31 AM
In the help-file the input is described as:
"Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response. "
You have to put your initial conditions in an array, not connect them as 2 seperate inputs.
Does this solve your problem?
04-22-2010 06:48 AM
Hi ThiCop,
I actually did provide them as an array. As you say they ask for the initial state vector. A state vector is used in state space models. But you can choose between transfer function and state space for the block, but I think you still need to provide the initial state vector even if you are using transfer function option. I am not sure, I didn't test it.
04-30-2010 05:05 AM - edited 04-30-2010 05:05 AM
Hello KF_,
First of all: for the use of this polymorphic VI you don't need to give initial conditions. If you look in the help file, you can see that the initial conditions input is written in light gray so this input is purely optional. You only need to provide the bold inputs.
I agree that the use of the name initial state vector can be quite misleading when you're not using a State Space model. But that is because you're using a polymorphic VI and every possible input can only have one "name".
Does this solve your problem?
04-30-2010 09:12 AM
Hello KF,
When using TF polymorphic instance of CD Linear Simulation VI, if you were to specify "Initial Condition, you are actually specifying "Initial Output"for the transfer function.
The polymorphic VI first convert your TF to a full realization type State-Space model.
Take your Initial Output(or as labled Initial Condition) along with Inputs, calculates initial states (x0).
Using that initial states, then performa linear simulation on the converted State-Space model.
Hope this helps
03-04-2011 03:03 AM
hi..!
i am trying to implement extended kalman filter in labview control design and simulation module.
when i run the vi it doesn't look like running at all though there are no errors..!
I am attaching the related files:plantmodel.vi and ekf.vi
Can you pls help me out..!