Input
An Input brings a value from the enclosing model’s caller into its diagram.
Behavior
Section titled “Behavior”y[n] = model_input[index][n]. The block forwards the current value without
changing it or adding a delay. index is the zero-based position in the model’s
input signature.
| Direction | Type | Meaning |
|---|---|---|
| Input | None | No incoming diagram connection. |
| Output | ty |
The corresponding model input. |
Parameters
Section titled “Parameters”| Parameter | Type | Default | Meaning |
|---|---|---|---|
index |
Integer index | 0 |
Position in the model’s inputs. |
ty |
Signal type | f64 |
Type of the model input, including arrays or composites. |
Example
Section titled “Example”A model has inputs target: f64 and measured: f64. Input index 1 exposes
measured: when the caller supplies measured = 4.5, the block outputs 4.5.