Simulink integral error in plant modeling

Hello,
To measure distance traveled by an object we can use integrate block on velocity and get it or we can use area under the velocity to get the displacement both will give same result if we use small time step.This works good for almost all cases, but in some cases the integral values are higher than the other and it is not logical. If the value i want to integrate is feed from work-space file it give same result as other one. I don't know why integrator block giving two results for same value.

5 Comments

Can you share the simulink model(export to r2017a)?
I can't share you the full model, but share you screen shot of my model. Please can you tell what data you want to check in this model.
I need to know the data Current. What is the size of it? Which column contains which information? Also please tell me whether you are using fixed step or variable step. Also your sampling rate.
Variable step solver with 0.01s step size. I have also shared the the data file.
If i use this data file from workspace file i will get different result. This data was output of another block model if it fed directly it gives one result and if it is fed from workspace it gives another result.Ihe result from workspace and simple line under the area gives same result. but another one gives higher value.

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!