How can I generate a physical square signal of boolean type on Simulink?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hasan Abed Al Kader Hammoud
am 17 Mär. 2019
Beantwortet: Arvind Sathyanarayanan
am 18 Mär. 2019
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).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/208856/image.png)
![s2.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/208858/s2.png)
0 Kommentare
Akzeptierte Antwort
Arvind Sathyanarayanan
am 18 Mär. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!