| Inports
| |
| In | Input value |
| Outports
| |
| Out | Averaged value |
| Mask Parameters | |
| n | Number of points to be averaged over |
| ts_fact | Multiplication factor of base sampling time (in integer format) |
Calculation of moving average value over n numbers.
Calculation:

| 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 |
| Name | FiP8 |
| ID | 5024 |
| Revision | 1 |
| C filename | Average_FiP8.c |
| H filename | Average_FiP8.h |
8 Bit Fixed Point Implementation
| Controller Parameters | |
| n | Average window size |
| sfrn | Shift factor for computation of average value sfrn = ld(n) |
| sum | Temporary sum |
| count | Index counter |
| avg | Array with data values |
Data Structure:
| Name | FiP16 |
| ID | 5025 |
| Revision | 1 |
| C filename | Average_FiP16.c |
| H filename | Average_FiP16.h |
16 Bit Fixed Point Implementation
| Controller Parameters | |
| n | Average window size |
| sfrn | Shift factor for computation of average value sfrn = ld(n) |
| sum | Temporary sum |
| count | Index counter |
| avg | Array with data values |
Data Structure:
| Name | FiP32 |
| ID | 5026 |
| Revision | 1 |
| C filename | Average_FiP32.c |
| H filename | Average_FiP32.h |
32 Bit Fixed Point Implementation
| Controller Parameters | |
| n | Average window size |
| sfrn | Shift factor for computation of average value sfrn = ld(n) |
| sum | Temporary sum |
| count | Index counter |
| avg | Array with data values |
Data Structure:
| Name | Float32 |
| ID | 5027 |
| Revision | 0.1 |
| C filename | Average_Float32.c |
| H filename | Average_Float32.h |
32 Bit Floating Point Implementation
| Controller Parameters | |
| n | Average window size |
| sum | Temporary sum |
| count | Index counter |
| avg | Array with data values |
Data Structure:
| Name | Float64 |
| ID | 5028 |
| Revision | 0.1 |
| C filename | Average_Float64.c |
| H filename | Average_Float64.h |
64 Bit Floating Point Implementation
| Controller Parameters | |
| n | Average window size |
| sum | Temporary sum |
| count | Index counter |
| avg | Array with data values |
Data Structure: