DSP Blockset Previous page   Next Page

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.

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.


Previous page  Continuous-Time Signals Nonsource Blocks Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS