ConstantIntegerOutput Icon
Sources.ConstantIntegerOutput
ConstantIntegerOutput(; name, k)A source component that outputs a constant integer value.
Parameters
k: The constant integer value to output
Variables
y(t): Integer output signal with constant value k
Description
This block outputs a constant integer value specified by parameter k. The output remains constant throughout the simulation.
Usage
PrimitiveComponents.Sources.ConstantIntegerOutput(k)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
k | – |
Connectors
y- This connector represents an integer signal as an output from a component (IntegerOutput)
Behavior
\[ \begin{align} y\left( t \right) &= k \end{align} \]
Source
"""
ConstantIntegerOutput(; name, k)
A source component that outputs a constant integer value.
# Parameters
- `k`: The constant integer value to output
# Variables
- `y(t)`: Integer output signal with constant value k
# Description
This block outputs a constant integer value specified by parameter `k`.
The output remains constant throughout the simulation.
"""
component ConstantIntegerOutput
y = Dyad.IntegerOutput() {
"Dyad": {
"placement": {
"diagram": {"x1": 1000, "x2": 1040, "y1": 480, "y2": 520, "sh": 1, "sw": 1, "rot": 0},
"icon": {"x1": 1000, "x2": 1040, "y1": 480, "y2": 520, "sh": 1, "sw": 1, "rot": 0}
}
}
}
# assigns this to the output
parameter k::Integer()
relations
y = k
metadata {
"Dyad": {
"labels": [{"label": "k = $(k)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://BlockComponents/Constant.svg"}
}
}
end
Flattened Source
"""
ConstantIntegerOutput(; name, k)
A source component that outputs a constant integer value.
# Parameters
- `k`: The constant integer value to output
# Variables
- `y(t)`: Integer output signal with constant value k
# Description
This block outputs a constant integer value specified by parameter `k`.
The output remains constant throughout the simulation.
"""
component ConstantIntegerOutput
y = Dyad.IntegerOutput() {
"Dyad": {
"placement": {
"diagram": {"x1": 1000, "x2": 1040, "y1": 480, "y2": 520, "sh": 1, "sw": 1, "rot": 0},
"icon": {"x1": 1000, "x2": 1040, "y1": 480, "y2": 520, "sh": 1, "sw": 1, "rot": 0}
}
}
}
# assigns this to the output
parameter k::Integer()
relations
y = k
metadata {
"Dyad": {
"labels": [{"label": "k = $(k)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://BlockComponents/Constant.svg"}
}
}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses