MATLAB Answers

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

4 views (last 30 days)
pavan kalyan
pavan kalyan on 30 Dec 2019
Answered: Mark McBroom on 31 Dec 2019
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

  0 Comments

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by