Block: Limitation



PIC




Inports


In

Input signal



max

Upper limit



min

Lower limit






Outports


Out

Limited input signal




Description:

Limits the input signal to min and max_sci.

Caution: For correct computation the upper limit max has to be greater than the lower limit min!

Calculation:

       (
       | max    In >  max
       {
Out  = | In
       ( min    In <  min

Implementations:
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP16


16 Bit Fixed Point Implementation



Inports Data Type


In

int16



max

int16



min

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


In

int32



max

int32



min

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


In

float32



max

float32



min

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


In

float64



max

float64



min

float64






Outports Data Type


Out

float64