How to Cause a Waveform to Clip an Analog Signal to a Specified Value?

Updated Apr 4, 2018

Reported In

Software

  • LabVIEW

Issue Details

I want to clip a signal that if any element exceeds an upper limit, it will be set to the value of that upper limit. Likewise, if any element is below a lower limit, it will be set to the lower limit. Is there a programmatic way to do this?

Solution

There is no built-in function in LabVIEW that will clip a signal inside a window. A Clip Waveform function has been attached below.
 
Clip Waveform.vi has 4 Inputs:
  • Waveform Input: The input signal that you want to limit
  • Upper Limit: If the signal is above this value, it will be set to this value
  • Lower Limit: If the signal is below this value, it will be set to this value
  • Error In: Error Input
Clip Waveform.vi has 2 Outputs:
  • Waveform Output: The limited Waveform in the window specified
  • Error Out: Error Output

Attachments

WAS THIS ARTICLE HELPFUL?

Not Helpful