< OpenECU Support

CANdb transmission rate

OpenECU follows the Simulink standard format for all sink blocks. This means that the sample time will be inherited from the signals that are driving the block. This also means that the GenMsgCycleTime parameter from the CANdb file is ignored.

To set the transmission rate to a rate that is different from the base rate of your model, a Rate Transition block must be added to all signals going into the pcx_CANdb_TransmitMessage block.

  • The Rate Transition block can be found in the Signal Attributes Simulink library.

  • To set the signal rate, double click the Rate Transition block and set the Output port sample time: box to the desired rate (in seconds).

See the CANdb demo for an example.

Copyright © 2022 OpenECU, All rights reserved