boolean to double signals

233 visualizaciones (últimos 30 días)
Hamed
Hamed el 14 de Mzo. de 2012
Editada: Walter Roberson el 25 de Ag. de 2024
hello I want to create PWM signal generator blocks in Simulink which has blanking time also. but i have problem with finding the right block and configuration. I used "Transport delay" or "Variable Time delay" or "dead zone". there is the problem with boolean to double signal in varible time delay and transpor delay. please help me thanks
  4 comentarios
Fahad khan
Fahad khan el 16 de Ag. de 2017
sir could you elaborate it plz...
quentin hay
quentin hay el 15 de Nov. de 2020
use data type conversion block. specify output as desired form. I used double

Iniciar sesión para comentar.

Respuestas (4)

Krishnendu Mukherjee
Krishnendu Mukherjee el 14 de Mzo. de 2012
there is a block datatype conversation.it works
  1 comentario
Shane Huang
Shane Huang el 13 de Abr. de 2021
Not sure why my convert block does not work. The result is always "optimized".

Iniciar sesión para comentar.


Hamed
Hamed el 14 de Mzo. de 2012
there is a "NOT" block before the "Transport delay" in my configuration. when I run the file it sends me the error message which is: Only 'double' signals are accepted by block type TransportDelay. The signals at the ports of 'untitled/Transport Delay' are of data type 'boolean'.
  1 comentario
Kaustubha Govind
Kaustubha Govind el 14 de Mzo. de 2012
Use the DataType Conversion block to convert the boolean signal to a double signal as Krishnendu suggested.

Iniciar sesión para comentar.


Abhishek Ballaney
Abhishek Ballaney el 27 de Feb. de 2018
Editada: Walter Roberson el 25 de Ag. de 2024
  1 comentario
Oleksandr
Oleksandr el 24 de Mzo. de 2023
Thank you, good man! It is your link that worked for me. One should seek for this element in Simulink Library as 'convert' or 'Data Type Conversion'. Certainly NOT as 'datatype conversation'.
Good luck to everyone!

Iniciar sesión para comentar.


Marwa Abdelkareem
Marwa Abdelkareem el 25 de Ag. de 2024
Hi
"Cast To Boolean " block or "Cast To Double" block may solve your problem

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by