Using Simulink     Search    Help Desk 

Signal Labels

You can label signals to annotate your model. Labels can appear above or below horizontal lines or line segments, and left or right of vertical lines or line segments. Labels can appear at either end, at the center, or in any combination of these locations.

Using Signal Labels

To create a signal label, double-click on the line segment and type the label at the insertion point. When you click on another part of the model, the label fixes its location.

Note
When you create a signal label, take care to double-click on the line. If you click in an unoccupied area close to the line, you will create a model annotation instead.

To move a signal label, drag the label to a new location on the line. When you release the mouse button, the label fixes its position near the line.

To copy a signal label, hold down the Ctrl key while dragging the label to another location on the line. When you release the mouse button, the label appears in both the original and the new locations.

To edit a signal label, select it:

To delete all occurrences of a signal label, delete all the characters in the label. When you click outside the label, the labels are deleted. To delete a single occurrence of the label, hold down the Shift key while you select the label, then press the Delete or Backspace key.

To change the font of a signal label, select the signal, choose Font from the Format menu, then select a font from the Set Font dialog box.

Signal Label Propagation

Signal label propagation is the automatic labeling of a line emitting from a connection block. Blocks that support signal label propagation are the Demux, Enable, From, Inport, Mux, Selector, and Subsystem blocks. The labeled signal must be on a line feeding a connecting block and the propagated signal must be on a line coming from the same connecting block or one associated with it.

To propagate a signal label, create a signal label starting with the "<" character on the output of one of the listed connection blocks. When you run the simulation or update the diagram, the actual signal label appears, enclosed within angle brackets. The actual signal label is obtained by tracing back through the connection blocks until a signal label is encountered.

This example shows a model with a signal label and the propagated label both before and after updating the block diagram. In the first figure, the signal entering the Goto block is labeled label and the signal leaving the associated From block is labeled with a single <. The second figure shows the same model after choosing Update Diagram from the Edit menu.


In the next example, the propagated signal label shows the contents of a vector signal. This figure shows the label only after updating the diagram.




[ Previous | Help Desk | Next ]