Bus Creator

Bundles named signals into one bus wire. Each input is named in its properties; a bus can carry another bus.

  • signal
  • Gradara equations
  • 3 ports
BlockBus CreatorKindbusCreatorLibraryRouting

Description

Bundles signals into a bus: one wire that carries them all, each under a name. The names are the input labels on the block; edit them, and add or remove inputs, under Signals in its properties.

An input may itself be a bus. Its signals keep their names below the input’s name, so a bus named motor holding speed becomes motor.speed. Pick signals out again with a Bus Selector, anywhere downstream and through any number of subsystem ports.

Example

Signal buses Named signals bundled into a bus with a Bus Creator, and picked out by name with a Bus Selector.

SpeedTorqueCurrentSensorsPickScale
In Gradara, select a Bus Creator block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:ConstantGainRampSine waveBus Selector

Ports

Inputs 2

  • signal1u1

    The signal named by this input (signal1 by default), or a bus.

  • signal2u2

    The signal named by this input (signal2 by default), or a bus.

Outputs 1

  • busy

    The bus: every input’s signals, in order, with their names.

Equations

Modelica
bus = {u1, u2}  (a bus input contributes all its signals)

Implementation

The block’s Modelica model
y = {u1, u2};

Assumptions and limitations

  • Names are a letter, then letters, digits, or _, and must differ within one block.
  • A bus is a vector of signals underneath: blocks other than Demux, Bus Selector, Mux, Bus Creator, and subsystem ports take one signal and report an error.

Tips

  • Logging the bus wire records every signal on it under its name, such as Bus.speed.

See also

Select a block in Gradara and press F1 to open its page offline.