Data type mismatch error in Simulink
이전 댓글 표시
I am running a simulation of Direct Torque Control of Induction Motor in Simulink. Howeve in sector formation I'm getting the following error:
Data type mismatch. 'Input Port 1' of 'DTC_Trial1/Hystersisis Control and Pulse Generation /Subsystem/Sum1' expects a signal of data type 'boolean'. However, it is driven by a signal of data type 'double'.
I'm not able to understand why this is happening. Any help would be appreciated. Attached file for reference. Thank you.
채택된 답변
추가 답변 (1개)
Fangjun Jiang
2022년 1월 14일
0 개 추천
- The easiest solution is to add a Data Type Conversion block.
- The proper solution is to set the proper data type at the relevant blocks.
- The related setting is the diagnostic for mismatch data types.
카테고리
도움말 센터 및 File Exchange에서 Converters (High Power)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!