Limit Test Express VI
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 |
Dialog Box Options
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:
|
Block Diagram Inputs
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. |
Block Diagram Outputs
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 Details
Output Signal Types
Limit Test returns a group of signals named limit test results. This group of signals contains the following elements:
- failed signal—The input signal(s) or value(s). If you graph failed signal, the graph includes the input signal, the limits, and the portions of the signal that failed the limit test.
- upper limit—The upper limit used to perform the limit test.
- lower limit—The lower limit used to perform the limit test.
Limits
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:
- Output signals of the same type as the input signal—You can use output signals from other LabVIEW SignalExpress steps or LabVIEW VIs as the limits. For example, you can compare a time-domain signal to two other time-domain signals.
- Output scalar values—You can use output scalar values from other LabVIEW SignalExpress steps or LabVIEW VIs as the limits. Limit Test compares the input signal to the scalar values element by element. For example, you can compare a time-domain signal to two measured DC values.
- User-defined signals of the same type as the input signal—You can define limit signals by clicking the Define Upper Limit, Define Lower Limit, or Define Single Limit buttons. The Define Signal dialog box appears, and you can define a limit signal based on user-defined points. Use this dialog box to create a limit signal made up of a series of line segments that connect these points.
- User-defined constants—You can define constant values for the limits. Limit Test compares the input signal to the constant values element by element.
If the input is a scalar value, you can use the following types of limits:
- Output scalar values—You can use output scalar values from other LabVIEW SignalExpress steps or LabVIEW VIs as the limits. Limit Test compares the input signal to the scalar values element by element. For example, you can compare a time-domain signal to two measured DC values.
- User-defined constants—You can define constant values for the limits. Limit Test compares the input value to the constant values.
Compare Mode and Limits Inclusion
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.
Defining a Limit Range from a Single Limit
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.
Limits Defined in a Logarithmic Frequency Scale
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.