Why can I not tune parameters in external mode in simulink with my arduino uno?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi! I have an arduino uno connected to my computer (with R2017a) whit the added for arduino in simulink. Im trying to adjust some PID parameters in the provided PID simulink block while running in external mode. The problem is that when I change the parameters in the PID controller nothing happens with the control signal. Only when I restart the process the changes take affect. I get no errors, only a warning saying: ''A terminate function is necessary, however the code generation process did not generate a terminate function because the 'Terminate function required' check box is cleared.'' because the stop time is set to inf.
0 commentaires
Réponses (1)
Nick Choi
le 3 Oct 2017
You may not have been able to observe significant changes when you tuned the PID parameters if the output of the system reached the desired value by the time that the gains were changed.
In this case, the PID's error signal would be quite small and this would limit observable effect that tuning a PID gain parameter would have. Enabling resets in the PID block could help make the changes in system behavior more noticeable.
The following documentation page provides useful information on how to configure PID blocks in Simulink: http://www.mathworks.com/help/simulink/slref/pidcontroller.html#br5mqa9-6
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!