필터 지우기
필터 지우기

boolean to double signals

조회 수: 216 (최근 30일)
Hamed
Hamed 2012년 3월 14일
댓글: Oleksandr 2023년 3월 24일
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

댓글을 달려면 로그인하십시오.

답변 (3개)

Krishnendu Mukherjee
Krishnendu Mukherjee 2012년 3월 14일
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일
https://in.mathworks.com/help/simulink/slref/datatypeconversion.html
  댓글 수: 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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by