Connecting 2 signals in Simulink gives an error about data type

1 visualización (últimos 30 días)
Justyna Fedko
Justyna Fedko el 11 de Mayo de 2020
Respondida: Guru Mohanty el 14 de Mayo de 2020
I'm trying to show on scope 2 signals - one is bit stream and the other one is the result of multiplication. Occured error is visible in attach.
Without scope3 plugged my model works properly and gives expected results.
Can you halp with that?

Respuestas (1)

Guru Mohanty
Guru Mohanty el 14 de Mayo de 2020
Hi, error in the model is due to the Product block. Its two inputs are of datatype 'int8' and 'double' and the output is of type 'double', but the wire expects a signal of type 'int8'.This causes an error. In this scenario, you can use Datatype Conversion Block or you can set the Output datatype of the product block.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by