DSP Blockset | ![]() ![]() |
Source Blocks
Source blocks are those blocks that generate or import signals in a model. Most source blocks appear in the DSP Sources library. See section Importing Signals to fully explore the features of these blocks.
Continuous-Time Source Blocks. The sample period for continuous-time source blocks is set internally to zero, which indicates a continuous-time signal. The Signal Generator block in Simulink is an example of a continuous-time source block. Continuous-time signals are rendered in black when Sample time colors is selected from the Format menu. When connecting such blocks to discrete-time blocks, you may need to interpose a Zero-Order Hold block to discretize the signal (see the following diagram). Specify the desired sample period for the signal in the Sample time parameter of the Zero-Order Hold block.
The Triggered Signal From Workspace block is also a continuous-time block.
Discrete-Time Source Blocks. Discrete-time source blocks such as Signal From Workspace require a discrete (nonzero) sample period to be specified in the block's Sample time parameter. Simulink generates an error if a zero value is specified for the Sample time parameter of a discrete-time source block.
![]() | Continuous-Time Signals | Nonsource Blocks | ![]() |