Generate Signals Without Source Blocks
Signal generators create signals without adding a block to your model. Generators are added and managed through the Viewers and Generators Manager.
Attach Signal Generator
Context Menu
- In the Simulink® Editor, right-click the input to a block. 
- From the context menu, select Create And Connect Generator > - product>- generator.- The name of the generator you choose appears in a box connected to the block input. 
Viewers and Generators Manager
- From the Simulation tab, open the Prepare gallery and select Viewers Manager. The Viewers and Generators Manager panel opens to the side of the Simulink editor. 
- In the Viewers and Generators panel, select the Generators tab. 
- Click the  button and select a generator. button and select a generator.- The generator is added to the list of generators. 
- Click the generator you just added from the list and select the  button. button.
- The canvas grays, indicating you are now in connect mode. Click the block you want to connect the generator to and in the pop-up, select the check box for the input port you want to attach the generator to. 
- Close connect mode by clicking the X in the upper right corner of the canvas. 
Modify Signal Generator Parameters
Context Menu
- Right-click the generator name and select Generator Parameters. In the Generator Parameters dialog box, enter parameters for this generator. 
- To rename a signal generator, double-click the generator label and type your new name for the generator. 
Viewers and Generators Manager
- From the Viewers and Generators Manager panel, select the generator from the Generator tab. 
- Click  and enter parameter values for this
                            generator. and enter parameter values for this
                            generator.
- To rename a signal generator, double-click the generator name in the Generators list and type your new name for the generator. 
Remove Signal Generator
Context Menu
- Right-click a generator. 
- From the context menu, select Disconnect Generator. - To also delete the generator, select Disconnect and Delete Generator 
Viewers and Generators Manager
- From the Viewers and Generators Manager panel, select the generator from the Generator tab. 
- Enter connect mode by selecting the  button button
- On the grayed canvas, select the generator and, in the pop-up, clear the check box next to the port you want to disconnect. 
- To delete the generator completely, in the Viewers and Generators Manager panel, also click  . .