Simulink Reference Previous page   Next Page
Bus Assignment

Assign values to specified elements of a bus.

Library

Signal Routing

Description


The Bus Assignment block assigns values, specified by signals connected to its assignment (:=) input ports, to specified elements of the bus connected to its Bus input port. Use the block's dialog box to specify the bus elements to be assigned values. The block displays an assignment input port for each bus element to be assigned a signal. The signal connected to the assignment port must have the same structure (i.e., vector, matrix, bus) , data type, and numeric (i.e., real or complex) type as the bus element to which it corresponds.

Data Type Support

The bus input port of the Bus Assignment block accepts and outputs real or complex values of any data type supported by Simulink, including fixed-point data types. The assignment input ports accept the same data and numeric types as the bus elements to which they correspond.

For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.

Parameters and Dialog Box

Signals in the bus
Displays the names of the signals contained by the bus at the block's Bus input port. Click any item in the list to select it. To find the source of the selected signal, click the adjacent Find button. Simulink opens the subsystem containing the signal source, if necessary, and highlights the source's icon. Use the Select>> button to move the currently selected signal into the adjacent list of signals to be assigned values (see Signals that are being assigned below). To refresh the display (e.g., to reflect modifications to the bus connected to the block), click the adjacent Refresh button.
Signals that are being assigned
Lists the names of bus elements to be assigned values. This block displays an assignment input port for each bus element in this list. The label of the corresponding input port contains the name of the element. You can order the signals by using the Up, Down, and Remove buttons. Port connectivity is maintained when the signal order is changed.
Three question marks (???) before the name of a bus element indicates that the input bus no longer contains an element of that name, for example, because the bus has changed since the last time you refreshed the Bus Assignment block's input and bus element assignment lists. You can fix the problem either by modifying the bus to include a signal of the specified name or by removing the name from the list of bus elements to be assigned values.

Previous page  Bitwise Operator Bus Creator Next page

© 1994-2005 The MathWorks, Inc.