LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CD linear simulation block in control, design and simulation toolkit

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

0 Kudos
Message 1 of 6
(3,362 Views)

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?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 6
(3,318 Views)

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. 

0 Kudos
Message 3 of 6
(3,311 Views)

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?

 

 

Message Edited by ThiCop on 04-30-2010 05:05 AM
Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 6
(3,268 Views)

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

Andy Chang
National Instruments
0 Kudos
Message 5 of 6
(3,250 Views)

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..!

Download All
0 Kudos
Message 6 of 6
(2,809 Views)