boolean to double signals

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 commentaires

Kaustubha Govind
Kaustubha Govind le 14 Mar 2012
I'm not sure what you mean by "boolean to double signals" - could you explain please?
Mohammad AlShawabkeh
Mohammad AlShawabkeh le 26 Août 2012
you have to put Gain on that bus :)
Fahad khan
Fahad khan le 16 Août 2017
sir could you elaborate it plz...
quentin hay
quentin hay le 15 Nov 2020
use data type conversion block. specify output as desired form. I used double

Connectez-vous pour commenter.

Réponses (4)

Krishnendu Mukherjee
Krishnendu Mukherjee le 14 Mar 2012

1 vote

there is a block datatype conversation.it works

1 commentaire

Shane Huang
Shane Huang le 13 Avr 2021
Not sure why my convert block does not work. The result is always "optimized".

Connectez-vous pour commenter.

Hamed
Hamed le 14 Mar 2012

0 votes

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 commentaire

Kaustubha Govind
Kaustubha Govind le 14 Mar 2012
Use the DataType Conversion block to convert the boolean signal to a double signal as Krishnendu suggested.

Connectez-vous pour commenter.

Abhishek Ballaney
Abhishek Ballaney le 27 Fév 2018
Modifié(e) : Walter Roberson le 25 Août 2024

0 votes

1 commentaire

Oleksandr
Oleksandr le 24 Mar 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!

Connectez-vous pour commenter.

Marwa Abdelkareem
Marwa Abdelkareem le 25 Août 2024

0 votes

Hi
"Cast To Boolean " block or "Cast To Double" block may solve your problem

Tags

Question posée :

le 14 Mar 2012

Modifié(e) :

le 25 Août 2024

Community Treasure Hunt

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

Start Hunting!

Translated by