Detect change on Simulink bus with different data types

15 visualizaciones (últimos 30 días)
Thomas Kotwal
Thomas Kotwal el 12 de Oct. de 2020
Respondida: Pratheek Punchathody el 27 de Nov. de 2020
What is a good way to determine if any signal in a bus changes value, when the signals in the bus have different data types? The Detect Change block requires that all input elements have the same type.

Respuestas (1)

Pratheek Punchathody
Pratheek Punchathody el 27 de Nov. de 2020
Hi Thomas,
As per my understanding one approach would be to create a bus object from the bus creator in your model that creates the bus using the function Simulink.Bus.createObject. Write a MATLAB function that looks to see if any of the bus elements match your specific signal name/type/size.
Hope this helps!

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by