.VehicleInterfaces.DataDictionaries.Tutorial

Information

Tutorial - Defining a new data dictionary subsystem

The following process will demonstrate how to create a new data dictionary model using these interface definitions.

  1. Create a new model that extends VehicleInterfaces.DataDictionaries.Interfaces.Base, it should look like this:
     

     
  2. 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.

  1. 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.
  2. Then add the bus connector for the appropriate sub-bus, in this case the chassisBus connector which can be found at VehicleInterfaces.Interfaces.ChassisBus.
  3. 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-03-28T19:15:55Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos