.VehicleInterfaces.UsersGuide.SignalBus.AddingSignals

Information

This method demonstrates how to add signals to the control signal bus. To place an existing signal such as vehicle longitudinal velocity on to the signal bus in the chassis subsystem use the following process:

Working within your chassis model…

  1. If not already there, drag the VehicleInterfaces.Interfaces.ChassisBus connector in to the model. It should get the default name chassisBus but rename it to this if it doesn't.
  2. Draw a connection from this new connector to the controlBus connector.
  3. In the connection dialog generated by Dymola select the following name: chassisBus


  4. Add a sensor to measure the vehicle speed and drag a connection to the chassisBus connector just added.
  5. In the connection dialog generated by Dymola select longitudinalVelocity from the list of options.


The chassis subsystem should look something like:




There are two methods for adding a new signal to the controlBus.

  1. You draw the connection as in step 4 above, and instead of selecting an option from the list in step 5 you would select the "Add variable" option and then type the name of the signal you would like to add to the controlBus.
  2. You extend from the chassisBus connector definition that can be found in VehicleInterfaces.Chassis.Internal.StandardBus and add the new signal definition. Then, when you reach steps 4 and 5 (above) your new signal will appear in the list of options and can be selected.

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos