Skip to content

Expandable connector (bus connector) in systems package

Philipp Mehrfeld edited this page May 29, 2020 · 3 revisions

In the systems package, the physical component model and the controller model are separated. Thus, different controllers could be used for the same physical system model. In order to reduce the number of connections between controller and component, we use the expandable connector (some times called bus connector). The user should follow the guidelines below:

Reuse existing connectors

Use an existing bus connector for a new model if possible. If no existing bus connector includes the needed variables, create a new bus connector. The new bus connector can be build up on existing bus connectors (e.g. if an existing connector includes some of the needed variables). For this, the existing connector can either be extended or declared in the new connector. If the connector extends another connector, all variables will be on the same level (e.g. the graphical "create connection" window or the plot window). If another connector is declared in the new connector, the variables will be arranged in a hierarchical structure.

An Example can be found in: AixLib.Systems.HydraulicModules.BaseClasses.HydraulicBus

Naming conventions

New variables that have to be connected with the expandable connector should be declared in the new connector. In contrast to Input or Output connectors, the direction of the signals in the bus connector are ambiguous (the input in the controller model is an output in the phyical model). To clarify the direction of the signals (from controller to physical model or opposite direction), we stick to following naming conventions: Variables that are outputs of the physical model (e.g. measured temperature) end with the abbreviation Mea, Variables that are inputs of the physical model and therefore outputs of the controller (e.g. valve opening set point) end with the abbreviation Set. Further, the variable names should understandable and be written in camelCase e.g.:

  • TInMea
  • VFlowMea
  • valveSet
Clone this wiki locally