This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Bus to Vector

Convert virtual bus to vector

  • Library:
  • Simulink / Signal Attributes

Description

The Bus to Vector block converts a virtual bus signal to a vector signal. The input bus signals must consist of scalars or 1-D, row, or column vectors that have the same data type, signal type, and sampling mode. If the input bus contains row or column vectors, the output is a row or column vector, respectively. Otherwise, the output is a 1-D array.

Use the Bus to Vector block only to replace an implicit bus-to-vector conversion with an explicit conversion. To identify and correct buses used as vectors without manually inserting Bus to Vector blocks, you can use the Simulink® Model Advisor Check bus signals treated as vectors check. Alternatively, you can use the Simulink.BlockDiagram.addBusToVector function, which automatically inserts Bus to Vector blocks wherever needed.

Note

If you use Save As to save a model in a version of the Simulink product before R2007a, Simulink replaces each Bus to Vector block with a null subsystem that outputs nothing. Before you can use the model, reconnect or otherwise correct each path that used to contain a Bus to Vector block but now is interrupted by a null subsystem.

Ports

Input

expand all

The input bus signals must consist of scalars or 1-D, row, or column vectors that have the same data type, signal type, and sampling mode. If the input is a nonbus signal, the block does no conversion.

Output

expand all

Output a vector signal, based on input bus signal. If the input bus contains row or column vectors, the block output is a row or column vector, respectively. Otherwise, the output is a 1-D array.

Parameters

This block has no user-accessible parameters.

Block Characteristics

Data Types

double | single | Boolean | base integer | fixed point | enumerated | bus

Direct Feedthrough

No

Multidimensional Signals

No

Variable-Size Signals

No

Zero-Crossing Detection

No

Extended Capabilities

Introduced before R2006a