The <differential> block calculates the derivative of the input; it is expressed in units of the input per second.
The calculation formula is as follows: derivative = (in – in(n-1)) / dt
where dt is the time in seconds measured between two executions.
Note that during the first execution, the “out” output will be invalid, because the “in (n-1)” output is invalid since it has not yet been evaluated.
•« in » : Main input. The default value is 0 (type int)
•« out » : This is the derivative of the input.
•« in (n-1) : The value of the input from the previous execution; this is a stored variable.
Inputs must be of type: int or float.
The output is of type float.