User Tools

Site Tools


measurement_checker

Measurement Checker Library

Overview

The DriveTest Measurement Checker Library is a LabVIEW library to create, edit and check values against rules. You can use arrays of X/Y-values or check data stored in TDMS files.

The library is in lvlip format (compiled LabVIEW library) and is optimzed for use with National Instruments TestStand.

License

A license is required to use this library. Please contact DriveTest GmbH for more information.

Schematic

Measurement Checker Library schematic

check against rule.vi

Checks an array of X/Y-values or a signal curve against defined upper and/or lower rules. The rules are located in a XML file and can be created, viewed or edited in the editor-VI. Either the X-value and Y-value terminals or the waveform terminal have to be connected.

measurements checker.lvlib_check against rule.vi Connector Pane

Inputs

path to XML document

Data Type Image The data type of this connection is “Path”. Wiring this connection is required. Path to the XML document in which the rules are saved.

X values

Data Type Image The data type of this connection is “Array”. Wiring this connection is recommended. Array of X-values (must be corresponding to the array of Y-values).

Y values

Data Type Image The data type of this connection is “Array”. Wiring this connection is recommended. Array of Y-values (must be corresponding to the array of X-values).

error in

Data Type Image The data type of this connection is “Cluster”. Wiring this connection is recommended. Use this input for data flow or to inhibit excecution in case of errors in previous VIs.

signal curve

Data Type Image The data type of this connection is “Measure Data (waveform)”. Wiring this connection is recommended. Waveform with array of Y-values and value of dt.

timeout show graph

Data Type Image The data type of this connection is “I32”. Wiring this connection is optional. Time how long the graph will be shown (4000ms).

Outputs

Rule not violated?

Data Type Image The data type of this connection is “Boolean”. TRUE when no rule is violated. FALSE when at least one rule is violated.

error out

Data Type Image The data type of this connection is “Cluster”. Information about run-time errors in this VI. Incoming errors are looped through to this output.

rule violating values

Data Type Image The data type of this connection is “Array”.

check tdms against rule.vi

With this VI you can load a TDMS file to check against rules. To select a specific channel you have to give the TDMS channel and group name. It will then use “check against rule.vi” to get a result.

measurements checker.lvlib_check tdms against rule.vi Connector Pane

Inputs

Fehler (Eingang)

Data Type Image The data type of this connection is “Cluster”. Wiring this connection is recommended. Use this input for data flow or to inhibit excecution in case of errors in previous VIs.

TDMS channel name

Data Type Image The data type of this connection is “String”. Wiring this connection is recommended. Select the channel in which your data is located.

TDMS file path

Data Type Image The data type of this connection is “Path”. Wiring this connection is recommended. Path to the TDMS file you want to check.

TDMS group name

Data Type Image The data type of this connection is “String”. Wiring this connection is recommended. Select the group in which your data is located.

path to XML rule file

Data Type Image The data type of this connection is “Path”. Wiring this connection is recommended. Path to the XML document in which the rules are saved.

timeout show graph

Data Type Image The data type of this connection is “I32”. Wiring this connection is optional. Time how long the graph will be shown (4000ms).

Outputs

Fehler (Ausgang)

Data Type Image The data type of this connection is “Cluster”. Information about run-time errors in this VI. Incoming errors are looped through to this output.

Rule not violated?

Data Type Image The data type of this connection is “Boolean”. TRUE when no rule is violated. FALSE when at least one rule is violated.

rule violating values

Data Type Image The data type of this connection is “Array”. Gives all X/Y values which violate at least one rule.

editor.vi

In the editor rules can be created, loaded or saved.

measurements checker.lvlib_editor.vi Connector Pane

Inputs

Outputs

show graph.vi

This VI enables a window to show the results of the “check against rule.vi” graphically. All rules, OK-values and NOK-values are displayed in a X-Y-graph. The window is displayed for 4s or closes immediately when you click it.

measurements checker.lvlib_show graph.vi Connector Pane

Inputs

Data

Data Type Image The data type of this connection is “Array”. Wiring this connection is recommended. Input for result data of “check against rule.vi”.

Plot names

Data Type Image The data type of this connection is “Array”. Wiring this connection is recommended. Contains all plot names for correct legend labelling.

timeout in ms (4000)

Data Type Image The data type of this connection is “I32”. Wiring this connection is recommended. Time before the window closes itself can be adjusted.

Outputs

measurement_checker.txt · Last modified: 2015/05/07 16:47 by dennis