Trace headers math |
Top Previous Next |
|
Here is located information about available functions in the trace header expressions
In this module the user can able to perform many mathematical operations to modify the trace headers reading. User can use any of the following mathematical operations to create their own equation/expression.
To reference to the trace field use "data type (byte)". For example, the expression "int4(185)" returns the value read as a 4-byte integer from byte number 185.
g-Space uses following mathematical expressions in designing your equation: Mathematical operators (+, -, *, /, %, ^); Functions (min, max, avg, sum, abs, ceil, floor, round, roundn, exp, log, log10, logn, root, sqrt, clamp, inrange); Trigonometry (sin, cos, tan, acos, asin, atan, atan2, cosh, cot, csc, sec, sinh, tanh, d2r, r2d, d2g, g2d, hyp); Equalities, Inequalities (=, ==, <>, !=, <, <=, >, >=); Assignment (:=, +=, -=, *=, /=); Boolean logic (and, nand, nor, not, or, xor, xnor, mand, mor); Control Structures (if-then-else, ternary conditional, switch case); Loop Structures (while loop, for loop, repeat until loop, break, continue) |