Skip to main navigation Skip to main content Skip to page footer

Calculating the derivative of a signal

Question

How can I calculate the derivative of a signal / User Accessible Quantity?

Solution

The derivative can be calculated using the RealTime Expressions function diff(a,b).
These built-in functions are also listed in the Appendix D.2.2 of the User's Guide.

For example, to calculate the derivative of the yaw acceleration, add the following Realtime Expressions in the global maneuver commands:

first() ? Qu::derivative_YawAcc = 0 : derivative_YawAcc = diff(Car.YawAcc, Time)

 

Date: 01.08.2023
Product: CarMaker
Version: 12.0
Component: RT Expressions
Language: English

Back to FAQ overview