Connecting 2 signals in Simulink gives an error about data type

조회 수: 1 (최근 30일)
Justyna Fedko
Justyna Fedko 2020년 5월 11일
답변: Guru Mohanty 2020년 5월 14일
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?

답변 (1개)

Guru Mohanty
Guru Mohanty 2020년 5월 14일
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.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by