Waveform Scalar Limit Comparison VI

Owning Palette: Analog Waveform VIs and Functions

Requires: Base Development System

Compares the waveform data values to a scalar value.

Details  Example

 Add to the block diagram  Find on the palette
data is the waveform that includes the data you want to compare to a specified limit.
compare condition indicates whether the highest or lowest data value of waveform must be lower than and/or equal to or higher than and/or equal to the number in limit.

0<—The highest or lowest value in the waveform is less than the limit.
1<=—The highest or lowest value in the waveform is less than or equal to the limit.
2>—The highest or lowest value in the waveform is greater than the limit.
3>= (default)—The highest or lowest value in the waveform is greater than or equal to the limit.
limit specifies the number to which you want to compare the highest or lowest data value in the waveform.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
output waveforms returns two waveforms in an array. The first is a copy of data. The second is the failure waveform, which is a copy of data with all elements that passed replaced by NaN. All valid elements are failures.
passed? indicates whether the highest or lowest data value met the compare condition based on the limit. FALSE indicates the highest or lowest data value did not meet the comparison.
error out contains error information. This output provides standard error out functionality.

Waveform Scalar Limit Comparison Details

passed? is FALSE if any point in the waveform fails the specified comparison. For example, passed? is FALSE if any waveform point is greater than the limit value when compare condition is set to <.

This VI also returns an array of waveforms where the first waveform is the original data. The second waveform contains the data with the failed limit comparison values replaced by NaN.

Example

Refer to the Waveform - Scalar Limit Comparison VI in the labview\examples\Waveform directory for an example of using the Waveform Scalar Limit Comparison VI.

 Open example  Find related examples