Gain Block is stuck in wrong data type

2 ビュー (過去 30 日間)
Lionel Pöffel
Lionel Pöffel 2021 年 12 月 1 日
コメント済み: Kiran Felix Robert 2021 年 12 月 6 日
I have a gain block in which I configured uint8 as data type (screenshots below). It then is connected to an outport of type uint8
Still when generating code using EmbeddedCoder I get the failure messages:
Data type mismatch. 'Input Port 1' of <output port name> expects a signal of data type 'uint8'. However, it is driven by a signal of data type 'ufix16_En8'.
Data type mismatch. 'Output Port 1' of <gain name> is a signal of data type 'ufix16_En8'. However, it is driving a signal of data type 'uint8'.
Is there any way to configure this gain block correctly?
Screen shots:
  1 件のコメント
Kiran Felix Robert
Kiran Felix Robert 2021 年 12 月 6 日
I am unable to reproduce your issue, could you please attach your model file ?

サインインしてコメントする。

回答 (0 件)

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by