Compares an input signal to user-specified limits and returns information on whether the test passed or failed, and where it failed. The step accepts time-domain signals, frequency-domain signals, and scalar values as input. You can specify the limits as signals or as scalar values. You also can specify user-defined limits. In LabVIEW SignalExpress, other steps can create limits.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description | ||
|---|---|---|---|
| View | View—Specifies how to display the results of the limit test. You can select from the following options:
| ||
| Limit Test | 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. This graph appears when you select Graph from the View pull-down menu. | ||
| Limit test results | Limit test results—Displays each signal in the limit test and whether or not the signal passed the test. This table appears when you select Result table from the View pull-down menu. | ||
| Autoscale amplitude | Scales the y-axis of the display graph. The default is to autoscale the amplitude. | ||
| all tests | Indicates if the tests passed or failed. | ||
| Input | The following options apply to the LabVIEW SignalExpress step:
| ||
| Input type | The following options apply to the Express VI:
| ||
| Configuration | Contains the following options:
| ||
| Advanced | Contains the following options:
| ||
| Actions | Contains the following options:
|
| Parameter | Description |
|---|---|
| Input | Specifies the input time-domain signal. |
| error in (no error) | Describes error conditions that occur before this VI or function runs. |
| Lower | Specifies the time-domain signal 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 time-domain signal that the Express VI uses as the upper limit. |
| UpperScalar | Specifies the scalar value that this Express VI uses as the upper limit. |
| Parameter | Description |
|---|---|
| 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. |
Use the Limit Test step to test if an input signal that is a time-domain waveform, a frequency-domain spectrum, or a scalar value is within a user-specified range.
Limit Test returns a group of signals named limit test results. This group of signals contains the following elements:
The Limit Test signal types depend on the input signal type.
If the input is a time-domain signal or frequency-domain spectrum, there are four possible limit options:
If the input is a scalar value, two possible limit options are available:
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 that 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.