Tutorial - Defining a new data dictionary subsystem
The following process will demonstrate how to create a new data dictionary
model using these interface definitions.
- Create a new model that extends
VehicleInterfaces.DataDictionaries.Interfaces.Base,
it should look like this:
- You can now define your data dictionary model as required
Adding an alias signal to the data dictionary
The following steps demonstrate how to add a new alias signal to the
control signal bus. An alias signal for the vehicle longitudinal velocity
in the chassisBus will be added called v_veh.
- Add a block Modelica.Blocks.Routing.RealPassThrough
and give it the name of the alias signal that you would like to create,
in this case v_veh.
Note, this block passes Real signal through without modification.
- Then add the bus connector for the appropriate sub-bus, in this case
the chassisBus connector which can be found at
VehicleInterfaces.Interfaces.ChassisBus.
- Then add two connections between the RealSignal connector and the
chassisBus connector. The first connects to the
longitudinalVelocity signal within the chassisBus,
the second creates a new signal called v_veh.
Generated at 2024-11-26T19:26:15Z
by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos