Block: AdaptivePT1



PIC




Inports


In

Input In(k)



fc

Cutoff frequency






Outports


Out

Output Out(k)







Mask Parameters



Name

ID

Description




V

1

Gain




fmax

2

Maximum frequency [Hz]

(not used in floating point implementations)




ts_fact

3

Multiplication factor of base sampling time (in integer format)




method

4

Discretization method





Description:

First order low pass with adaptive cut off frequency:

G(s) = V/(s/(2*pi*fc) + 1)

Transfer function (zero-order hold discretization method):

               -2πfT
G (z) = V 1---e----cs-
          z - e-2πfcTs

Implementations:
FiP8 8 Bit Fixed Point Implementation
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: FiP8


8 Bit Fixed Point Implementation



Inports Data Type


In

int8



fc

int8






Outports Data Type


Out

int8




Implementation: FiP16


16 Bit Fixed Point Implementation



Inports Data Type


In

int16



fc

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


In

int32



fc

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


In

float32



fc

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


In

float64



fc

float64






Outports Data Type


Out

float64