Simulink + Arduino Uno: Problem logging two signals

2 vues (au cours des 30 derniers jours)
Viggo Wivestad
Viggo Wivestad le 9 Mai 2017
I am controlling a cascade system using Simulink, two PI-regulators, two analog inputs and one PWM output. However, I am having trouble logging the signals that I am reading. When I delete the part inside the red, dotted line, the display-block works fine and shows the correct value. However, when I add the second PID-controller (which is just a copy of the ne outside the red, dotted box), the display box only shows the value 'zero' when running, and the value disappears when the "simulation" is done.
Some additional information: I am using the continuous integration block inside the PID-regulator. Not sure if this is relevant, and except for the logging problem is seems to work fine.
  2 commentaires
Alain Kuchta
Alain Kuchta le 11 Mai 2017
You seem to be referring to a model or image in your description of the problem, but there is no model or image attached to your question. Please upload the model or image so we can better understand your question.
Trinidad Gonzalez graniel
Trinidad Gonzalez graniel le 12 Juin 2020
ufff apenas veo este mensaje, pero creo quetu problema era los baud; a mi me pasaba lo mismo e implemente esto:
codertarget.arduinobase.registry.setBaudRate('F2F3_000',921600). Lo que está entre comillas es el nombre de mi proyecto en simulink y lo que he marco en letras negritas son los baud. No hace falta que cambies los baud del puerto com de tu computador.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by