Contents

na_0010: Grouping data flows into signals

ID: Title

na_0010: Grouping data flows into signals

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

Vectors

The individual scalar signals composing a vector must have common functionality, data types, dimensions, and units. The most common example of a vector signal is sensor or actuator data that is grouped into an array indexed by location. The output of a Mux block must always be a vector. The inputs to a Mux block must always be scalars.

Busses

Signals that do not meet criteria for use as a vector, as previously described, must only be grouped into bus signals. Use Bus Selector blocks only with a bus signal input; do not use them to extract scalar signals from vector signals.

Examples

Some examples of vector signals include:

Vector typeSize
Row vector [1 n]
Column vector[n 1]
Wheel speed vector[1 Number of wheels]
Cylinder vector[1 Number of cylinders]
Position vector based on 2D coordinates[1 2]
Position vector based on 3D coordinates[1 3]

Some examples of bus signals include:

Bus typeElements
Sensor BusForce Vector [Fx, Fy, Fz]
Position
Wheel Speed Vector [Θlf, Θrf, Θlr, Θrr]
Acceleration
Pressure
Controller BusSensor Bus
Actuator Bus
Serial Data BusCoolant Temperature
Engine Speed, Passenger Door Open

Rationale

  • Readability

  • Code Generation

Last Changed

V2.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check usage of buses and Mux blocks

Was this topic helpful?