主要内容

轻拍延迟

Delay scalar signal multiple sample periods and output all delayed versions

  • 库:
  • 金宝appSimulink /离散

    HDL Coder / Discrete

  • 轻按延迟块

Description

The轻拍延迟block delays an input by the specified number of sample periods and provides an output signal for each delay. For example, when you specify4forNumber of delays开始顺序输出isOldest, the block provides four outputs — the first delayed by four sample periods, the second delayed by three, and so on. Use this block to discretize a signal in time or resample a signal at a different rate.

The block accepts one scalar input and generates an output vector that contains data for each incremental delay. Specify the order of the delayed signals in the output vector with theOrder output vector starting withparameter:

  • Oldest或者ders the output vector starting with the oldest delay version and ending with the newest delay version.

  • Newest或者ders the output vector starting with the newest delay version and ending with the oldest delay version.

Specify the output vector for the first sampling period with the初始条件parameter. Careful selection of this parameter can mitigate unwanted output behavior.

Specify the time between samples with theSample timeparameter. Specify the number of delays with theNumber of delaysparameter. A value of-1指示该块通过反向传播继承延迟数。每个延迟等效于Z-1discrete-time operator, which the单位延迟block represents.

Ports

输入

expand all

输入signal to delay.

Data Types:single|double|int8|INT16|INT32|int64|uint8|uint16|uint32|uint64|Boolean|固定点
Complex Number Support:Yes

Output

expand all

所有版本的延迟输入信号。使用Order output vector starting with参数以指定输出向量中延迟信号的顺序。

Data Types:single|double|int8|INT16|INT32|int64|uint8|uint16|uint32|uint64|Boolean|固定点

Parameters

expand all

Specify the initial output of the simulation. The初始条件参数使用圆形和饱和度从双重数据类型转换为输入数据类型。

限制

The initial condition of this block cannot beinf或者NaN

Programmatic Use

Block Parameter:vinit
Type:character vector
Values:scalar
Default:'0.0'

指定样本之间的时间间隔。要继承样本时间,请将此参数设置为-1。For more information, seeSpecify Sample Time

Programmatic Use

Block Parameter:Samptime
Type:character vector
Values:scalar | vector
Default:'-1'

Specify the number of discrete-time operators as a positive scalar, or-1用于继承。

Programmatic Use

Block Parameter:NumDelays
Type:character vector
Values:positive scalar |-1(inherited)
Default:'4'

Specify whether to output the oldest delay version first, or the newest delay version first.

Programmatic Use

Block Parameter:DelayOrder
Type:character vector
Values:'最老的'| 'Newest'
Default:'最老的'

Select this check box to include the current input in the output vector.

Programmatic Use

Block Parameter:includeCurrent
Type:character vector
Values:'off' | 'on'
Default:'off'

块特征

Data Types

Boolean|double|固定点|整数|single

直接进料

Multidimensional Signals

Variable-Size Signals

Zero-Crossing Detection

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

Fixed-Point Conversion
使用定点Designer™设计和模拟定点系统。

Version History

在R2006a之前引入