Borrar filtros
Borrar filtros

Simulink + Arduino Uno: Problem logging two signals

1 visualización (últimos 30 días)
Viggo Wivestad
Viggo Wivestad el 9 de Mayo de 2017
Comentada: Trinidad Gonzalez graniel el 12 de Jun. de 2020
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 comentarios
Alain Kuchta
Alain Kuchta el 11 de Mayo de 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 el 12 de Jun. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by