PicoScope 7 Software
Available on Windows, Mac and Linux
When configuring input channels for an external sensor, it is often necessary to convert the output voltage signal from a sensor into the correct value and appropriate units for the sensor. For example, for a pressure sensor with a 1 V per 200 mbar output signal, you would need to multiply the input by 200 and set custom units of "mbar", or divide the input by 5 and set units to "bar".
The equation editor for channel scaling function in PicoLog 6 requires a numerical output, which you can define using any combination of a wide range of arithmetic, Boolean, relational, statistical and trigonometric operators and constants.
: brackets for changing operator precedence
: standard arithmetic functions
x ^ y
: x to the power of y
e ^ x
: the exponential function of x
x % y
: the modulus (remainder of an integer division) of x by y
n!
the factorial of n, where n is an integer
log(x [,base])
: the logarithm of x to base 10 or another optionally specified base. Alternatively use log10(x)
: the base-10 logarithm of x
log(x, e)
: natural logarithm of x
sqrt(x)
: square root of x
abs(x)
: absolute value of x
ceil(x)
: x rounded towards positive infinity
floor(x)
: x rounded towards negative infinity
round(x[, n])
: x rounded towards nearest integer (to n
decimal places, if specified)
x and y
: Boolean AND of x and y
x or y
: Boolean OR of x and y
not x
: Boolean inverse of x
x xor y
: Boolean exclusive-OR of x and y
max(a, b, c...)
: compares all the values in the list and returns the maximum number
min(a, b, c...)
: compares all the values in the list and returns the minimum number
mean(a, b, c...)
: the mean of the list of values
median(a, b, c...)
: the median of the list of values
sin(x)
: sine of x
cos(x)
: cosine of x
tan(x)
: tangent of x
operand1 ? operand2 : operand3
- the conditional operator (? :), also called the ternary operator.
Example: x > 0 ? x*4 : x*3
The conditional operator works as follows:
operand1
evaluates to true, operand2
is evaluatedoperand1
evaluates to false, operand3
is evaluatedx == disconnected
Returns true if input x belongs to a disconnected device
pi: the ratio of a circle's circumference to its diameter (3.141592653589793)