DSP Blockset | ![]() ![]() |
Source Blocks
Source blocks are those blocks that generate or import signals in a model. Many of these blocks have the term "from workspace" or "constant" in the block name (e.g., Signal From Workspace, DSP Constant), and most 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). An example is Simulink's Signal Generator block. Continuous-time signals are rendered in black when Sample time colors is selected from the Format menu. As shown below, when connecting such blocks to certain nonsource discrete-time blocks, you may need to interpose a Zero-Order Hold block to discretize the signal. 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 considered to be a continuous-time block.
Discrete-Time Source Blocks. Discrete-time source blocks, such as Signal From Workspace, require a discrete (i.e., 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 | ![]() |