.

Clip 2 (Assymetric)

Overview

Overview

The Clip2 block provides asymmetric limits for an input signal. The signal will saturate at a maximum value of (UpperLimit) and a minimum value of (LowerLimit). The input signal is offset by an amount defined by the offset prior to the clipping the signal to the upper and lower limits.

The configuration values for this block are as follows:

 
UpperLimit

Asymmetric Upper Limit.

If Input + Offset < UpperLimit, then Output = Input + Offset
If Input + Offset >= UpperLimit, then Output = UpperLimit

LowerLimit

Asymmetric Lower Limit.

If Input + Offset > LowerLimit, then Output = Input + Offset
If Input + Offset <= LowerLimit, then Output = LowerLimit

Offset Offset value that is summed with the Input value before clipping the input to the upper and lower limits.
Subsample Code A code which determines the schedule for updating this block (every sample, even samples only, etc.) See Subsampling.
User Data 0 Application-specific data. See User Data Storage.
User Data 1 Application-specific data. See User Data Storage.

 

Matlab/Simulink

Simulink Interface

bin_img1

The Output of a Clip2 block is the Input plus the offset clipped by the upper and lower limits.

If Input + Offset < UpperLimit, or > LowerLimit, then Output = Input + Offset

If Input + Offset >= UpperLimit, then Output = UpperLimit

If Input + Offset <= LowerLimit, then Output = LowerLimit

The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. See User Data Storage for details.

The block's update schedule is determined by the Subsample Code (See Subsampling). The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink Model:

bin_img2

 

C++ API

CLIP2Block

Declaration

Public Method

 
CLIP2Block&   CLIP2();
  Required Header: mechaware.h

Description

The Clip2 block provides symmetrical limits for an input signal. The signal will saturate at a maximum value of (+ Limit) and a minimum value of (– Limit). The input signal is offset by an amount defined by offset prior to the clipping the signal to +/- limit.

 
double CLIP2().UpperLimit

Asymmetric Upper Limit.

If Input + Offset < UpperLimit, then Output = Input + Offset
If Input + Offset >= UpperLimit, then Output = UpperLimit

double CLIP2().LowerLimit

Asymmetric Lower Limit. Input + Offset.

If Input + Offset <= LowerLimit, then Output = LowerLimit

double CLIP2().Offset Offset value that is summed with the Input value before clipping the input to the upper and lower limits.

Methods

Block Methods

 

See Also

Clip (Symmetric)

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2012 Motion Engineering