Block: Delay



PIC




Inports


In

Input In(k)






Outports


Out

Output Out(k)=In(k-1)






Mask Parameters


ts_fact

Multiplication factor of base sampling time (in integer format)




Description:

Output delay by one sample time interval.

This block can be used to enable feedback loops in the model.

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


Name FiP16
ID 3425
Revision 0.1
C lename Delay_FiP16.c
H lename Delay_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


In_old

Input value from previous cycle




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     int16         Out; 
     int16         In_old; 
} DELAY_FIP16;

Implementation: FiP32


Name FiP32
ID 3426
Revision 0.1
C lename Delay_FiP32.c
H lename Delay_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


In_old

Input value from previous cycle




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     int32         Out; 
     int32         In_old; 
} DELAY_FIP32;

Implementation: Float32


Name Float32
ID 3427
Revision 0.1
C lename Delay_Float32.c
H lename Delay_Float32.h

32 Bit Floating Point Implementation



Controller Parameters


In_old

Input value from previous cycle




Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *In; 
     float32       Out; 
     float32       In_old; 
} DELAY_FLOAT32;

Implementation: Float64


Name Float64
ID 3428
Revision 0.1
C lename Delay_Float64.c
H lename Delay_Float64.h

64 Bit Floating Point Implementation



Controller Parameters


In_old

Input value from previous cycle




Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *In; 
     float64       Out; 
     float64       In_old; 
} DELAY_FLOAT64;