Owning Palette: Test and Compare Express VIs
Installed With: LabVIEW SignalExpress
Tests an input signal or value against user-specified limits and returns information on whether the test passed or failed and, in the case of a failure, where it failed. Limit Test accepts time-domain signals, frequency-domain signals, and scalar values as inputs. You can specify either signals or scalar values for the limits, and you can define the limits or use other signals in the project as the limits.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description | ||
|---|---|---|---|
| View | Specifies how to display the results of the limit test. You can select from the following options:
| ||
| Limit Test | [View: Graph] Displays the result of the limit test operation. The four plots show the original input signal, the points where the limit test operation failed, and the two limit signals, respectively.
| ||
| Limit test results | [View: Results table] Displays each signal in the limit test and whether or not the signal passed the test. | ||
| Autoscale y-axis | [View: Graph] Specifies whether to autoscale the y-axis on the Limit Test graph. | ||
| selected test | Indicates whether the test of the signal displayed on the Limit Test graph passed or failed. This indicator appears only when you test a group of signals. | ||
| all tests | Indicates if the tests passed or failed. | ||
| Input | The following options apply only to the Limit Test step in LabVIEW SignalExpress:
| ||
| Input type | The following options apply only to the Limit Test Express VI in LabVIEW:
| ||
| Configuration | Contains the following options for configuring the limits for the limit test:
| ||
| Advanced | Contains the following options:
| ||
| Actions | Contains the following options:
|
| Parameter | Description |
|---|---|
| Input | Specifies the input signal or scalar value. |
| error in (no error) | Describes error conditions that occur before this VI or function runs. |
| Lower | Specifies the frequency spectrum that the Express VI uses as the lower limit. |
| LowerScalar | Specifies the scalar value that this Express VI uses as the lower limit. |
| reset | Specifies if the limits have to be reset. The default is FALSE. Set reset to TRUE each time you provide new limits to this VI. |
| Upper | Specifies the frequency spectrum that this Express VI uses as the upper limit. |
| UpperScalar | Specifies the scalar value that this Express VI uses as the upper limit. |
| Parameter | Description |
|---|---|
| test passed | Indicates the result of limit mask testing. |
| error out | Contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error. |
| Input Signals | Returns the input signal, the upper and lower limits, and the failures. |
Limit Test returns a group of signals named limit test results. This group of signals contains the following elements:
The type of limits you can define for the Limit Test depend on the input signal type.
If the input is a time-domain or frequency-domain signal, you can use the following types of limits:
If the input is a scalar value, you can use the following types of limits:
Limit Test has four compare modes. These modes indicate if a signal or value is between limits, outside limits, greater than a lower limit, or lower than an upper limit. You can choose the exact limit values to include or not include in the test. These limit values result in a failing or passing test where the input value equals the limit value.
You can define a set of upper and lower limits from a single limit using the gain and offset scaling parameters. Select the limits based on Single Limit & Range to enable the user-defined scaling parameters.
When you use user-defined signals as limits for a frequency-domain signal, Limit Test defines the limits as a series of line segments that connect user-defined points. By default, Limit Test assumes the frequency axis is linear so a linear relationship exists between the frequency and the magnitude or phase values. The Freq. axis is logarithmic checkbox specifies whether to display a logarithmic frequency axis and define the limit signals so the connection between the points appears as straight lines in the logarithmic frequency scale. You can define the limits in a logarithmic frequency scale if you want to test the asymptotic roll-off of a filter, typically a straight line in a decibel versus logarithmic frequency scale.