|
|
| Vector | C | ST | |
in the palette |
on the schematic |
The block implements linear interpolation of the input value. In this case, the input value equal to the minimum input value corresponds to zero at the output, and the input value equal to the maximum input value corresponds to one at the output:
where
u(
t) is the input scalar signal,
xmin,
xmax are the block parameters,
y(
t) is the output scalar signal. If a vector signal is transmitted to the input, then the block parameters must be set by vectors corresponding to the input of dimension, then the output will be a vector signal:
where
u(
t) = [
u1,
u2, …,
un] is the input vector signal,
xmin,i,
xmax,i – the i-th elements of the block properties vectors,
u(
t) = [
u1,
u2,…,
un] – the output vector signal,
n≥1 – the dimension of the input and output signals, as well as the properties of the block.
Properties:
- Minimum value of the input is xmin – the value of the input signal corresponding to 0 at the output.
- Maximum value of the input is xmax – the value of the input signal corresponding to 1 at the output.
Прим.:
- By default, the block generates a scalar output signal.
- Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.