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
  y    =   c  x  + d  u
   1,k       11 1,k   11 1,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
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating 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;

Implementation: Float32


Name Float32
ID 3347
Revision 0.1
C filename TDSystemO1_Float32.c
H filename TDSystemO1_Float32.h

32 Bit Floating Point Implementation



Controller Parameters


a11

Coefficient a11



b11

Coefficient b11



c11

Coefficient c11



d11

Coefficient d11



x1

State x1




Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *In; 
     float32       Out; 
     float32       a11; 
     float32       b11; 
     float32       c11; 
     float32       d11; 
     float32       x1; 
} TDSYSTEMO1_FLOAT32;

Implementation: Float64


Name Float64
ID 3348
Revision 0.1
C filename TDSystemO1_Float64.c
H filename TDSystemO1_Float64.h

64 Bit Floating Point Implementation



Controller Parameters


a11

Coefficient a11



b11

Coefficient b11



c11

Coefficient c11



d11

Coefficient d11



x1

State x1




Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *In; 
     float64       Out; 
     float64       a11; 
     float64       b11; 
     float64       c11; 
     float64       d11; 
     float64       x1; 
} TDSYSTEMO1_FLOAT64;