CalculateCanBusLoad

ID: legacy/2020.x/CalculateCanBusLoad


Deprecated: Replaced by array-based NumPy trace step template.

This trace step template calculates an approximated value for the bus load based on baud rate and data lenght code (DLC) of the frame. It also takes into account the bit stuffing.

Note: This trace step template is only implemented for ASC files. It emits a new signal containing the approximated bus load in percent [%] which can be used in the next episode. By default, the emitting rate is 1 sample per second, but it can be varied using the sample rate parameter.

Signals

BusLoad

Approximated bus load in percent [%].

  • Direction: OUT

  • Optional: False

MessageEvent

MessageEvent pseudo signal from measurement file. Per default this one is named “FrameLength” in the measurement file (e.g. ASC).

  • Direction: IN

  • Optional: False

Parameters

BaudRate

Baud rate of the given bus in [sample/s]. Default: 500000 sample/s

  • Direction: IN

  • Type: INTEGER

SampleRate

Sample rate for evaluation of bus load in [Hz]. Default: 1 Hz.

  • Direction: IN

  • Type: FLOAT