MATLAB Answers

How can I generate a physical square signal of boolean type on Simulink?

Dont mind the purpose of the circuit I just connected a simple switch for the sake of demonstration of the problem I am facing.
I need to generate a square wave signal of boolean type in order to drive a bunch of switches. This is the error I get below when I try this technique (I am using MATLAB R2016b).
s2.png

  0 Comments

Sign in to comment.

1 Answer

Answer by Arvind Sathyanarayanan on 18 Mar 2019
 Accepted Answer

You need the double data type to drive the switches but, using the NOT (or any logical operator) changes the data type to boolean. Insert the data type conversion block after your logical operator to change the signal back to double.

  0 Comments

Sign in to comment.