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.
Standard arithmetic functions
x ^ y Calculates the power of x to y.
e ^ x Calculate the exponent of a value
x % y Calculates the modulus, the remainder of an integer division
x! Compute the factorial of a value Factorial only supports an integer value as argument.
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.
log(x, e) Calculate the logarithm to the base e of x
sqrt(x) Calculate the square root of a value
abs(x) Calculate the absolute value of a number
ceil(x) Round a value towards plus infinity
floor(x) Round a value towards minus infinity
round(x[, n]) - Round towards nearest integer
x and y Boolean AND two values
x or y Boolean OR two values
not x Boolean NOT value
x xor y Boolean XOR two values
max(a, b, c...) Compares all the values in the list and return the maximum number
min(a, b, c...) Compares all the values in the list and return the minimum number
mean(a, b, c...) Computes the mean value from the list of values
median(a, b, c...) Computes the median value from the list of values
sin(x) Calculate the sine of a value.
cos(x) Calculate the cosine of a value
tan(x) Calculate the tangent of a value
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:
x == disconnected where x is the data from a channel
Pi: The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter (3.141592653589793)
1.4e3 = 1400
22e-3 = 0.022