|
|
|
Simple calculations:
deltaRPM=[RPM]-[RPM-1]
interpreted as:
deltaRPM = (Current RPM)-(RPM 1 record back)
You can reference previous records by incuding the -x inside the []. As seen above
[RPM] references the current RPM, where [RPM-1] now references the RPM 1 record previous.
You can reference back further, i.e [RPM-2] will reference 2 records back,
[RPM-3] is 3 back, and so on. All references are relative.
Operators:
Advanced Math functions:
Supported Advanced Math functions are:
Logical Conditions
Conditions will result in a true or false state. These can be used in several places including
Custom Filters in VE Analyze.
[RPM]>2000
interpreted as:
true when RPM is greater than 2000, false if 2000 RPM or below
Any form of complex math expresion can be used on each side of the operator.
Supported comparators:
In-line evaluation
In some instances you may want different calculations performed based on a condition.
this can be performed with an in-line evaluation
output = {condition} ? {true expression} : {false expression}
Example:
calcVal = [RPM] > 1000 ? [RPM] : 0
this will provide RPM for anything over 1000, anything under will be 0
Naturally You can get as fancy as needed in the condition, true expression and false expression.
some good examples of rather complex calculations can be found in the MSGraph.properties file
for MegaLogViewer. Checkout the calculations for "Instant MPG" or HP