Output discrete-time sequence and repeat, interpolating between data points
Simulink / Sources
The Repeating Sequence Interpolated block outputs a periodic discrete-time sequence based on the values in Vector of time values and Vector of output values parameters. Between data points, the block uses the method you specify for the Lookup Method parameter to determine the output.
Port_1
— Periodic output signalOutput signal generated based on the values in the Vector of time values and Vector of output values parameters.
Data Types: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| fixed point
Vector of output values
— Vector of output values[3 1 4 2 1].'
(default) | vectorVector of output values that specify the output waveform. Each element corresponds to the time value in the Vector of time values parameter.
Block Parameter:
OutValues |
Type: character vector |
Values: vector |
Default: [3 1 4 2
1].' |
Vector of time values
— Vector of time values[0 0.1 0.5 0.6 1].'
(default) | vectorSpecify the column vector containing time values. The time values must be strictly increasing, and the vector must have the same size as the vector of output values.
Block Parameter:
TimeValues |
Type: character vector |
Values: vector |
Default: [0 0.1
0.5 0.6 1].' |
Lookup Method
— Lookup method for outputInterpolation-Use End
Values
(default) | Use Input Nearest
| Use Input Below
| Use Input Above
Specify the lookup method to determine the output between data points.
Block Parameter:
LookUpMeth |
Type: character vector |
Values:
'Interpolation-Use End Values' |
'Use Input Nearest' | Use Input
Below | Use Input
Above |
Default:
'Interpolation-Use End Values' |
Sample time
— Time interval between samples0.01
(default) | scalarSpecify the time interval between samples. To inherit the sample time,
set this parameter to -1
. See Specify Sample Time
for more information.
Block Parameter:
tsamp |
Type: character vector |
Values: scalar |
Default:
'0.01' |
Output minimum
— Minimum output value for range checking[]
(default) | scalarLower value of the output range that Simulink® checks.
Simulink uses the minimum to perform:
Parameter range checking (see Specify Minimum and Maximum Values for Block Parameters) for some blocks.
Simulation range checking (see Specify Signal Ranges and Enable Simulation Range Checking).
Automatic scaling of fixed-point data types.
Optimization of the code that you generate from the model. This optimization can remove algorithmic code and affect the results of some simulation modes such as SIL or external mode. For more information, see Optimize using the specified minimum and maximum values (Embedded Coder).
Note
Output minimum does not saturate or clip the actual output signal. Use the Saturation block instead.
Block Parameter:
OutMin |
Type: character vector |
Values: '[ ]' |
scalar |
Default: '[ ]' |
Output maximum
— Maximum output value for range checking[]
(default) | scalarUpper value of the output range that Simulink checks.
Simulink uses the maximum value to perform:
Parameter range checking (see Specify Minimum and Maximum Values for Block Parameters) for some blocks.
Simulation range checking (see Specify Signal Ranges and Enable Simulation Range Checking).
Automatic scaling of fixed-point data types.
Optimization of the code that you generate from the model. This optimization can remove algorithmic code and affect the results of some simulation modes such as SIL or external mode. For more information, see Optimize using the specified minimum and maximum values (Embedded Coder).
Note
Output maximum does not saturate or clip the actual output signal. Use the Saturation block instead.
Block Parameter:
OutMax |
Type: character vector |
Values: '[ ]' |
scalar |
Default: '[ ]' |
Output data type
— Specify the output data typedouble
(default) | Inherit: Inherit via back
propagation
| single
| int8
| int32
| uint32
| int64
| uint64
| fixdt(1,16,2^0,0)
| <data type expression>
| ...Choose the data type for the output. The type can be inherited,
specified directly, or expressed as a data type object such as
Simulink.NumericType
.
Block Parameter:
OutDataTypeStr |
Type: character vector |
Values: , 'Inherit: Inherit via back
propagation' , 'single' ,
'int8' , 'uint8' ,
int16 , 'uint16' ,
'int32' , 'uint32' ,
'int64' , 'uint64' ,
fixdt(1,16,0) ,
fixdt(1,16,2^0,0) ,
fixdt(1,16,2^0,0) . '<data
type expression>' |
Default:
'Double' |
Lock output data type setting against changes by the fixed-point tools
— Prevent fixed-point tools from overriding data typesoff
(default) | on
Select to lock the output data type setting of this block against changes by the Fixed-Point Tool and the Fixed-Point Advisor. For more information, see Use Lock Output Data Type Setting (Fixed-Point Designer).
Block Parameter:
LockScale |
Type: character vector |
Values:
'off' |
'on' |
Default:
'off' |
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Cannot be used inside a triggered subsystem hierarchy.