boolean to double signals

245 次查看(过去 30 天)
Hamed
Hamed 2012-3-14
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 个评论
Fahad khan
Fahad khan 2017-8-16
sir could you elaborate it plz...
quentin hay
quentin hay 2020-11-15
use data type conversion block. specify output as desired form. I used double

请先登录,再进行评论。

回答(4 个)

Krishnendu Mukherjee
there is a block datatype conversation.it works
  1 个评论
Shane Huang
Shane Huang 2021-4-13
Not sure why my convert block does not work. The result is always "optimized".

请先登录,再进行评论。


Hamed
Hamed 2012-3-14
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 个评论
Kaustubha Govind
Kaustubha Govind 2012-3-14
Use the DataType Conversion block to convert the boolean signal to a double signal as Krishnendu suggested.

请先登录,再进行评论。


Abhishek Ballaney
Abhishek Ballaney 2018-2-27
编辑:Walter Roberson 2024-8-25
  1 个评论
Oleksandr
Oleksandr 2023-3-24
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!

请先登录,再进行评论。


Marwa Abdelkareem
Marwa Abdelkareem 2024-8-25
Hi
"Cast To Boolean " block or "Cast To Double" block may solve your problem

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by