Unit Delay
延迟信号一个样本周期
- 库:
Simulink / Discrete
HDL Coder / Discrete
描述
TheUnit Delayblock holds and delays its input by the sample period you specify. When placed in an iterator subsystem, it holds and delays its input by one iteration. This block is equivalent to the z-1离散时间操作员。该块接受一个输入并生成一个输出。每个信号可以是标量或向量。如果输入是向量,则块将块保存并延迟矢量的所有元素缩短相同的示例周期。
您可以在第一个采样期内指定块输出初始条件范围。Careful selection of this parameter can minimize unwanted output behavior. You specify the time between samples with the采样时间范围。设置-1
指块继承采样时间。
不te
TheUnit Delay如果您使用它来以不同的样本速率运行的块之间创建过渡,则块错误。使用费率转换取而代之的是。
与类似块的比较
The内存,Unit Delay,和零订单保持blocks provide similar functionality but have different capabilities. Also, the purpose of each block is different.
This table shows recommended usage for each block.
块 | 块的目的 | 参考示例 |
---|---|---|
Unit Delay | 使用您指定的离散示例时间实施延迟。该块以离散的示例时间接受并输出信号。 |
|
内存 | 通过一个主要集成时间步骤实施延迟。理想情况下,该块接受连续(或在次要时间步中固定)信号,并输出一个固定在次要时间步长的信号。 |
|
零订单保持 | Convert an input signal with a continuous sample time to an output signal with a discrete sample time. |
每个块具有以下功能。
Capability | 内存 | Unit Delay | 零订单保持 |
---|---|---|---|
Specification of initial condition | 是的 | 是的 | 不, because the block output at time t = 0 must match the input value. |
Specification of sample time | 不,因为该块只能从驾驶块或用于整个模型的求解器继承样品时间。 | 是的 | 是的 |
金宝app支持基于框架的信号 | 不 | 是的 | 是的 |
金宝app支持状态记录 | 不 | 是的 | 不 |
端口
输入
Output
Parameters
模型示例
块Characteristics
数据类型 |
|
Direct Feedthrough |
|
多维信号 |
|
可变大小信号 |
|
Zero-Crossing Detection |
|