Block: TDSystemO1



PIC




Inports


In

Input #1






Outports


Out

Output #1






Mask Parameters


A

State matrix A



B

Input matrix B



C

Output matrix C



D

Feedthrough matrix D




Description:

1st order time discrete system with one input and one output.

Calculation:

x1,k+1  =   a11x1,k + b11u1,k
   y1,k  =   c11x1,k + d11u1,k
or short
xk+1  =   Axk  + Buk

  yk  =   Cxk  + Duk

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation

Implementation: FiP8


Name FiP8
ID 3344
Revision 1
C filename TDSystemO1_FiP8.c
H filename TDSystemO1_FiP8.h

8 Bit Fixed Point Implementation



Controller Parameters


a11

Coefficient a11



b11

Coefficient b11



c11

Coefficient c11



d11

Coefficient d11



sfra11

Shift factor for coefficient a11



sfrb11

Shift factor for coefficient b11



sfrc11

Shift factor for coefficient c11



sfrd11

Shift factor for coefficient d11



x1

State x1




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     int8          Out; 
     int8          a11; 
     int8          b11; 
     int8          c11; 
     int8          d11; 
     uint8         sfra11; 
     uint8         sfrb11; 
     uint8         sfrc11; 
     uint8         sfrd11; 
     int8          x1; 
} TDSYSTEMO1_FIP8;

Implementation: FiP16


Name FiP16
ID 3345
Revision 1
C filename TDSystemO1_FiP16.c
H filename TDSystemO1_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


a11

Coefficient a11



b11

Coefficient b11



c11

Coefficient c11



d11

Coefficient d11



sfra11

Shift factor for coefficient a11



sfrb11

Shift factor for coefficient b11



sfrc11

Shift factor for coefficient c11



sfrd11

Shift factor for coefficient d11



x1

State x1




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     int16         Out; 
     int16         a11; 
     int16         b11; 
     int16         c11; 
     int16         d11; 
     uint8         sfra11; 
     uint8         sfrb11; 
     uint8         sfrc11; 
     uint8         sfrd11; 
     int16         x1; 
} TDSYSTEMO1_FIP16;

Implementation: FiP32


Name FiP32
ID 3346
Revision 1
C filename TDSystemO1_FiP32.c
H filename TDSystemO1_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


a11

Coefficient a11



b11

Coefficient b11



c11

Coefficient c11



d11

Coefficient d11



sfra11

Shift factor for coefficient a11



sfrb11

Shift factor for coefficient b11



sfrc11

Shift factor for coefficient c11



sfrd11

Shift factor for coefficient d11



x1

State x1




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     int32         Out; 
     int32         a11; 
     int32         b11; 
     int32         c11; 
     int32         d11; 
     uint8         sfra11; 
     uint8         sfrb11; 
     uint8         sfrc11; 
     uint8         sfrd11; 
     int32         x1; 
} TDSYSTEMO1_FIP32;