identifying continuous-time and discrete-time models using ident toolbox

14 vues (au cours des 30 derniers jours)
Mohammad
Mohammad le 18 Avr 2017
Commenté : Mohammad le 18 Avr 2017
Hello,
I have some questions regarding system identification toolbox.
I am running a simulink model and collect data with "to workspace" block as my inputs and outputs to be used in ident toolbox.
1- What sample time -1 means for "to workspace" block? If I want to identify a continuous-time model in ident toolbox, should I set that sampling time to -1?
2- If I want to identify a discrete-time model can I set sampling time of those blocks to, say 0.1, and then set the sampling time field in ident toolbox on 1, and choose discrete-time option? Could you please tell me where that disturbance component (signal) is exactly located in the closed loop system?
BTW, if I choose discrete-time option, then the state-space form will be x(t+Ts)=..., if I set Ts=1 is that equal to x[k+1]?
Bests, Mohammad

Réponses (1)

Arkadiy Turevskiy
Arkadiy Turevskiy le 18 Avr 2017
Hi there,
Please take a look at this example , I think it should help clarify things.
Sample time of -1 means the sample time will be inherited from the upstream part of the model. For purposes of system identification data has to be sample uniformly, so instead of -1 specify a small sample time you want to sample simulation data with. Then follow the workflow described in the model for estimating either discrete or continuous model.
If you estimate discrete transfer function or state space system the equation will be something like x(k+1)= function (x(k), u(k). Here k+1 refers to the next computation after k. Whether sampling time is 1 sec, 0.1 sec or 0.01 sec, the discrete time system is always described by the equation I mentioned.
Hope this helps.
  1 commentaire
Mohammad
Mohammad le 18 Avr 2017
Hi Arkadiy,
Thanks for your answer.
I think there is still one thing unclear for me:
How can I estimate a continuous-time state-space model for my data? I am pretty sure that I have to choose "continuous-time" option in ident toolbox. But the thing is that should I first reset the sample time of "to workspace" blocks from, say 0.1 sec, to -1?
Bests

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by