How to delay an output signal by milliseconds

조회 수: 3 (최근 30일)
Akinkunmi
Akinkunmi 2024년 4월 4일
답변: R 2024년 4월 4일
My modelling requirement includes a need to delay an input signal (of type 'BOOL') by up to 10 milliseconds. I have tried using Transport Delay block but it returns an error saying this only works for 'Double' data types and not 'BOOL'. I also tried standard delay block but this only accepts integer delay length values. Does anyone have a walkaround step in mind I could try?

채택된 답변

R
R 2024년 4월 4일
Hi,
As a workaround, you can convert the input signal from 'bool' to 'double' using the Data Type Conversion Block and then pass it in the Transport Delay block. Here is the documentation for reference:

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by