Using Simulink    

Editing Signals

The Signal Builder dialog box allows you to create, cut and paste, hide, and delete signals from signal groups.

Creating Signals

To create a signal in the currently selected signal group, select New from the Signal Builder's Signal menu. A menu of waveforms appears. The menu includes a set of standard waveforms (Constant, Step, etc.) and a Custom waveform option. Select one of the waveforms. If you select a standard waveform, the Signal Builder adds a signal having that waveform to the currently selected group. If you select Custom, a custom waveform dialog box appears.

The dialog box allows you to specify a custom piecewise linear waveform to be added to the groups defined by the Signal Builder block. Enter the custom waveform's time coordinates in the T Values field and the corresponding signal amplitudes in the Y Values field. The entries in either field can be any MATLAB expression that evaluates to a vector. The resulting vectors must be of equal length. Select OK. The Signal Builder adds a signal having the specified waveform to the currently selected group.

Cutting and Pasting Signals

To cut or copy a signal from one group and paste it into another group:

  1. Select the signal you want to cut or copy.
  2. Select Cut or Copy from the Signal Builder's Edit menu or the corresponding button from the toolbar.
  3. Select the group into which you want to paste the signal.
  4. Select Paste from the Signal Builder's Edit menu or the corresponding button on the toolbar.

Renaming a Signal

To rename a signal, select the signal and choose Rename from the Signal Builder's Signal menu. A dialog box appears with an edit field that displays the signal's current name. Edit or replace the current name with a new name. Click OK. Or edit the signal's name in the Name field in the lower left corner of the Signal Builder dialog box.

Changing a Signal's Index

To change a signal's index, select the signal and choose Change Index from the Signal Builder's Signal menu. A dialog box appears with an edit field containing the signal's existing index. Edit the field and select OK. Or select an index from the Index list in the lower left corner of the Signal Builder window.

Hiding Signals

By default, the Signal Builder dialog box displays the waveforms of a group's signals in the group's tabbed pane. To hide a waveform, select the waveform and then select Hide from the Signal Builder's Signal menu. To redisplay a hidden waveform, select the signal's Group pane, then select Show from the Signal Builder's Signal menu to display a menu of hidden signals. Select the signal from the menu. Alternatively, you can hide and redisplay a hidden waveform by double-clicking its name in the Signal Builder's signal list (see Signal List).


  Editing Signal Groups Editing Waveforms