1 Block libraries Block name Purp。se Outport Create an output port for a subsystem or ar external output. Note that this block resides inside the Subsystem block and inside other subsystem blocks in the Subsystem, Atomic Represent a system within another system witch case Implements C-like switch statement logic witch Case Action Re resent a s Subsystem triggered by a Switch Case block. T Add a trigger port to a subsystem. Note this Subsystem and the enabled and Triggered Subsystem in the Subsystems library Triggered Subsystem Skeleton triggered subsystem While iterator Implement a C-like while or do-while ol flow statement as a while While Iterator Subsystem Represent a subsystem that executes repeatedly while a condition is satisfied during a simulation time step 1-12
1 Block Libraries 1-12 Outport Create an output port for a subsystem or an external output. Note that this block resides inside the Subsystem block and inside other subsystem blocks in the Subsystems library. Subsystem, Atomic Subsystem Represent a system within another system. Switch Case Implements C-like switch statement logic. Switch Case Action Subsystem Represent a subsystem whose execution is triggered by a Switch Case block. Trigger Add a trigger port to a subsystem. Note this block resides inside the Triggered Subsystem and the Enabled and Triggered Subsystem in the Subsystems library. Triggered Subsystem Skeleton triggered subsystem. While Iterator Implement a C-like while or do-while control flow statement as a While subsystem. While Iterator Subsystem Represent a subsystem that executes repeatedly while a condition is satisfied during a simulation time step. Block Name Purpose slref.book Page 12 Friday, June 21, 2002 5:58 PM
Signal Attributes The Signal Attributes library contains blocks that modify or output attributes Block name P Data Type Conversion Convert a signal to another data type et the initial value of a signal Rate transition Specify the data transfer mechanism between the data rates of a multirate system. Probe Output a signals attributes, including width, sample time, and/or signal type ignal Specification Specify attributes of a signal Width Output the width of the input vector 1-13
Signal Attributes 1-13 Signal Attributes The Signal Attributes library contains blocks that modify or output attributes of signals. Block Name Purpose Data Type Conversion Convert a signal to another data type. IC Set the initial value of a signal. Rate Transition Specify the data transfer mechanism between the data rates of a multirate system. Probe Output a signal’s attributes, including width, sample time, and/or signal type. Signal Specification Specify attributes of a signal. Width Output the width of the input vector. slref.book Page 13 Friday, June 21, 2002 5:58 PM
1 Block libraries Signal Routing The Signal routing library contains blocks that route signals from one point in a block diagram to another Block Name P Bus creator Create a signal bus Bus selector Output signals selected from an input bus Data Store Memory Define a shared data store Data Store read Read data from a shared data store Data Store Write Write data to a shared data store Demux Separate a vector signal into output ccept input from a Goto block Goto Pass block input to From blocks Goto Tag visibility Define the scope of a goto block tag Manual switch Switch between two inputs Merge Combine several input lines into a scalar Multi-Port Switch Choose between block inputs Mux Combine several input lines into a vector Selector Select or reorder the elements of the input vector Switch Switch between two inputs 1-14
1 Block Libraries 1-14 Signal Routing The Signal Routing library contains blocks that route signals from one point in a block diagram to another. Block Name Purpose Bus Creator Create a signal bus. Bus Selector Output signals selected from an input bus. Data Store Memory Define a shared data store. Data Store Read Read data from a shared data store. Data Store Write Write data to a shared data store. Demux Separate a vector signal into output signals. From Accept input from a Goto block. Goto Pass block input to From blocks. Goto Tag Visibility Define the scope of a Goto block tag. Manual Switch Switch between two inputs. Merge Combine several input lines into a scalar line. Multi-Port Switch Choose between block inputs. Mux Combine several input lines into a vector line. Selector Select or reorder the elements of the input vector. Switch Switch between two inputs. slref.book Page 14 Friday, June 21, 2002 5:58 PM
Sinks The Sinks library contains blocks that display or write block output Block Name Purp。se Display Show the value of the input Outport Create an output port for a subsystem or an external output Scope, Floating Scope Display signals generated during a Stop Simulation Stop the simulation when the input is Terminator Terminate an unconnected output port To File Write data to a file To Workspace Write data to a variable in the workspace XY Graph Display an X-Y plot of signals using a MATLAB figure window 1-15
Sinks 1-15 Sinks The Sinks library contains blocks that display or write block output. Block Name Purpose Display Show the value of the input. Outport Create an output port for a subsystem or an external output. Scope, Floating Scope Display signals generated during a simulation. Stop Simulation Stop the simulation when the input is nonzero. Terminator Terminate an unconnected output port. To File Write data to a file. To Workspace Write data to a variable in the workspace. XY Graph Display an X-Y plot of signals using a MATLAB figure window. slref.book Page 15 Friday, June 21, 2002 5:58 PM
1 Block libraries Sources The Sources library contains blocks that generate signals Block name Purpose Band-Limited White Noise Introduce white noise into a continuous Chirp Signal Generate a sine wave with increasing Clock Display and provide the simulation time Digital Clock Generate simulation time at the specified From file Read data from a file From Workspace Read data from a variable defined in the workspace. Ground an unconnected input port Create an input port for a subsystem or an external input. Pulse generator Generate pulses at regular intervals. Ramp Generate a constantly increasing or Random Number Generate normally distributed random Repeating Sequence Generate a repeatable arbitrary signal Signal builder Generate an arbitrary piecewise linear Signal generator Generate various waveforms l-16
1 Block Libraries 1-16 Sources The Sources library contains blocks that generate signals. Block Name Purpose Band-Limited White Noise Introduce white noise into a continuous system. Chirp Signal Generate a sine wave with increasing frequency. Clock Display and provide the simulation time. Constant Generate a constant value. Digital Clock Generate simulation time at the specified sampling interval. From File Read data from a file. From Workspace Read data from a variable defined in the workspace. Ground Ground an unconnected input port. Inport Create an input port for a subsystem or an external input. Pulse Generator Generate pulses at regular intervals. Ramp Generate a constantly increasing or decreasing signal. Random Number Generate normally distributed random numbers. Repeating Sequence Generate a repeatable arbitrary signal. Signal Builder Generate an arbitrary piecewise linear signal. Signal Generator Generate various waveforms. slref.book Page 16 Friday, June 21, 2002 5:58 PM