resample
Syntax
- threshold: number
Description
Converts the output of the previous operation into a digital high (true) if its value is above or equal to the threshold value, or a digital low (false) if the value is below.
In addition to the general purpose expression operations, threshold is the only operation that converts analog inputs into digital outputs.
Examples
- AdapterScript
var1:
- source: AIN0
- threshold: 2.5
info
In the above example, AIN0
is an identifier available in LabJack data sources.