Math channels

Some applications require the recording and graphing of a calculated parameter containing data from one or more measurement channels. PicoLog 6 is equipped with an equation editor to perform simple calculations such as A–B, or more complex functions such as log, sqrt, abs, round, min, max, mean and median. 

Math channels are treated like any normal channel, so you can perform functions like alarms, graphing and annotations on them. 

Arithmetic functions

Image featuring a open bracket symbol     Image featuring a close bracket symbol     Brackets:

Image featuring the plus symbol     Image showing the subtract symbol    Image featuring the divide symbol     Image featuring the multiply symbol     Standard arithmetic functions

Image of the exponential mathematical function xY    Power: x ^ y Calculates the power of x to y.

Image of the exponential mathematical function eY    Exponential: e ^ x Calculate the exponent of a value

Image with the text mod    Modulus: x % y Calculates the modulus, the remainder of an integer division

Image featuring the factorial n!    Factorial: x! Compute the factorial of a value Factorial only supports an integer value as argument.

Image with the text Log    Log: log(x [,base]) Calculate the logarithm of a value, square brackets are optional parameters. Optionally use Log 10: log10(x) Calculate the 10-base logarithm of a value. 

Image featuring the text In    ln: log(x, e) Calculate the logarithm to the base e of x

Image with the text sqrt    Square root: sqrt(x) Calculate the square root of a value

Image with the text abs    Absolute: abs(x) Calculate the absolute value of a number

Image with the text ceil    Ceiling: ceil(x) Round a value towards plus infinity

Image with the text floor    Floor: floor(x) Round a value towards minus infinity

Image featuring the text round    Round: round(x[, n]) - Round towards nearest integer

Boolean Operators

Image featuring the text: and    and: x and y Boolean AND two values

Image featuring the tex or    or: x or y Boolean OR two values

Image featuring the text not    not: not x Boolean NOT value

Image featuring the text xor    xor: x xor y Boolean XOR two values

Statistical functions

    Maximum: max(a, b, c...) Compares all the values in the list and return the maximum number

    Minimum: min(a, b, c...) Compares all the values in the list and return the minimum number

    Mean: mean(a, b, c...) Computes the mean value from the list of values

    Median: median(a, b, c...) Computes the median value from the list of values

Trigonometric functions

    Sine: sin(x) Calculate the sine of a value.

    Cosine: cos(x) Calculate the cosine of a value

    Tangent: tan(x) Calculate the tangent of a value

Special functions

Conditional expression: operand1 ? operand2 : operand3 - The conditional operator (? :) is a ternary operator (it takes three operands). E.g. x > 0 ? x*4 : x*3  The conditional operator works as follows:

  • If operand1 evaluates to true, operand2 is evaluated
  • If operand1 evaluates to false, operand3 is evaluated

 

Device disconnected: x == disconnected where x is the data from a channel

Constants

    Pi: The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter (3.141592653589793)

Scientific notation

1.4e3 = 1400

22e-3 = 0.022