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 Y-scale | Scales the y-axis of the display graph. The default is to autoscale the Y-scale. |
| 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 option:
|
| Actions | Contains the following options:
|
| Parameter | Description |
|---|---|
| Input | Specifies the input signal. |
| error in (no error) | Describes error conditions that occur before this VI or function runs. |
| LowerScalar | Specifies the scalar value that this Express VI uses as the lower 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. |
| Limit Test | 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.
When defining user-defined limits for a frequency-domain signal, this step defines the limits as a series of line segments that connect user-defined points. By default, the step 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 indicates 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.