Simulink data type mismatch when using atomic subsystems

2 ビュー (過去 30 日間)
Niels Divens
Niels Divens 2023 年 1 月 18 日
編集済み: Sylvain 2023 年 1 月 18 日
Dear,
I am updating a model to be multirate instead of running entirely on one Task timer. Therefore, I was thinking on using atomic subsystems.
When changing the two root subsystems (“TestRig” and “FastTask”) to an atomic subsystems with each there own sample time, I receive an error related to a datatype mismatch:
Data type mismatch. Output port 1 of 'Mastermodel/Rate Transition1' is a signal of data type 'uint8'. However, it is driving a signal of data type double. This message is related to a hidden RateTransition block.
While when compiling the original model with non-atomic subsystems, I have no issues with data type mismatches.
For your information, all input and output port signals are virtual busses with signals of different data types.
I also attached a screenshot of the model root and the subsytem's block parameters.
Any proposals on how to resolve this issue?
Kind regards,
Niels

回答 (1 件)

Sylvain
Sylvain 2023 年 1 月 18 日
編集済み: Sylvain 2023 年 1 月 18 日
Can you use a data conversion block before or after the rate transition and cast to either a double or a uint8?

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by