Scope and display showing no outputs when using simulink package for Arduino

10 views (last 30 days)
Goodmorning,
I'm trying to control an electric motor via simulink. I'm measuring the speed through encoder, using the tachimeter block. In most cases it works, as you can see in the picture. Here I'm using a PI controller. I'm running it through "Monitor and Tune" and using discrete transfer functions, with a fixed sampling time.
The problem arises when the input signal is a ramp or when I implement the "PID" block, or in general when I enter some kind of transfer function with the "LTI system" block. Apparently, if I just use the "PI" block, everything works. So there must be some problem with the derivative term (my opinion, but I can be wrong).
Here you can see what happens in these cases. The motor works, it is actually spinning, however simulink doesn't show any output.
Thanks for any help you can provide,
Gennaro
  1 Comment
Connor Mills
Connor Mills on 16 Nov 2020
Edited: Connor Mills on 16 Nov 2020
Hello Gennaro, I am having this same problem, except mine won't even work with a PI as yours did. Were you able to fix it?

Sign in to comment.

Answers (0)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!