Why do i receive data type mismatch error when using a Simulink?

38 ビュー (過去 30 日間)
pavan kalyan
pavan kalyan 2019 年 12 月 30 日
回答済み: Mark McBroom 2019 年 12 月 31 日
Input port 1 of 'project/Gate Drive2/Simulink-PS Converter1' expects a signal of data type 'double'. However, it is driven by a signal of data type 'boolean'.
Data type mismatch. Output port 1 of 'project/Gate Drive2/From2' is a signal of data type 'boolean'. However, it is driving a signal of data type 'double'.
Component:Simulink

回答 (1 件)

Mark McBroom
Mark McBroom 2019 年 12 月 31 日
You need to add type conversion blocks upstream of the P-S block to convert the boolean signal to a double precision signal.

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by