Derivative of state '1' in block 'PP_poly/Integrator1' at time 0.0 is not finite.

1 vue (au cours des 30 derniers jours)
Dogukan
Dogukan le 24 Avr 2023
Hi, I am working on a simulink simulation of an autonomous three wheeled vehicle. My system right now is,
And I am getting not finite error from the integrator block that comes after inverse kinematics block. I know the reasons why simulink gives this error but I can not see why I am getting it. I tried to saturated integrator and memory block to prevent this but it didnt work. The inputs I am giving to integator are,
The signals are important for me, so I can not change their behaviour or anything.
  4 commentaires
Dogukan
Dogukan le 25 Avr 2023
@Sam Chak Sure, here you can see they are all nan. I am kinda confused why it is nan at the start.
Dogukan
Dogukan le 25 Avr 2023
Modifié(e) : Dogukan le 25 Avr 2023
@Sam Chak Okay I fixed it with MATLAB Function block where I put a if statement that if time is equal to zero then make these two signal zero and it fixed the problem thank you for your helps.

Connectez-vous pour commenter.

Réponses (1)

Sam Chak
Sam Chak le 25 Avr 2023
It's good to hear that your problem is solved now. I moved my comment to the Answer section because it helped you to figure out what went wrong. If you find the tips helpful, please consider accepting ✔ and voting 👍 on the answer. Thanks!
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Can you right-click to show the value labels on the selected signals? It helps to investigate the issue. Something like shown below:

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by