In the Simulink® Editor, right-click the input to a block.
From the context menu, select Create & Connect Generator, the product, and then the generator you want as input to the block.
The name of the generator you choose appears in a box connected to the block input.
Right-click the generator name and select Generator Parameters. In the Generator Parameters dialog box, enter values for parameters that are specific to this generator.
Right-click the input to a block and select Signal & Scope Manager.
In the Types pane and under the Generators node, expand a product node to show the available generators.
Select a generator and click Attach to model.
The generator is added to a table in the Generators tab in the Generators/Viewers in model section. The table lists the generators in your model.
Right-click a generator icon on a signal line.
From the context menu, select Disconnect Generator.