Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We need to do discrete simulation before using Simscape. #13

Open
cnpcshangbo opened this issue Feb 28, 2018 · 7 comments
Open

We need to do discrete simulation before using Simscape. #13

cnpcshangbo opened this issue Feb 28, 2018 · 7 comments

Comments

@cnpcshangbo
Copy link
Owner

Discrete simulation needs to be done before using Simscape.

@cnpcshangbo
Copy link
Owner Author

image
This is the continuous one.
image

@cnpcshangbo
Copy link
Owner Author

cnpcshangbo commented Mar 1, 2018

Now, lets add some samplers(sample time=0.3sec) and see.
image
image

@cnpcshangbo
Copy link
Owner Author

From this, we know that the continuous controller doesn't work for the sample-based system. Therefore, we should do something to convert the transfer function to z transfer function.

@cnpcshangbo
Copy link
Owner Author

cnpcshangbo commented Mar 1, 2018

Later, I found even if I convert the transfer function to z transfer function, the control performance doesn't get better. The way to get it better is to get the sampling period smaller.
image
purple: Ts=0.3
blue: Ts=0.1

@cnpcshangbo
Copy link
Owner Author

FOPD Ts=0.1
image
image

@cnpcshangbo
Copy link
Owner Author

cnpcshangbo commented Mar 1, 2018

Conclusion: FOPD discretization is verified. The thing to get performance better is to use smaller Ts. We do not need to manually use c2d. The system can treat continuous tf and z tf the same.

@cnpcshangbo
Copy link
Owner Author

The system still has a bad behavior.
image
I am going to verify the z domain stability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant