Can the data type of a Simulink PS converter be boolean instead of double/single?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a signal. A data type conversion block is being used to convert the data type of the signal to boolean. The signal then goes to Simulink PS converter. Upon doing so the follwoing error pops up.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1746931/image.png)
Request for help to use boolean data type signals with Simulink PS converters.
0 Commenti
Risposte (1)
Madheswaran
il 5 Ago 2024
Hi Shivani,
As it is mentioned in the documentation, the only the datatype double is supported as an input datatype for input port in Simulink-PS Converter block. However, you can add a ‘Data Type Conversion’ block to convert the signals of type Boolean to the corresponding double values, i.e., 0 for false and 1 for true.
Please refer to the following documentation for Simulink-PS convertor block:
0 Commenti
Vedere anche
Categorie
Scopri di più su Switches and Breakers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!