LIBRARY
Examples.Selector ​
Usage ​
DiscreteComponents.Examples.Selector()
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
nu | – | 1 | |
index | – | 1 |
Connectors ​
u- This connector represents a real signal as an input to a component (RealInput)y- This connector represents a real signal as an output from a component (RealOutput)
Behavior ​
Source ​
dyad
component Selector
u = [Dyad.RealInput() for i in 1:nu] {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
},
"tags": []
}
}
y = Dyad.RealOutput() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
},
"tags": []
}
}
structural parameter nu::Integer = 1
structural parameter index::Integer = 1
relations
y = u[index]
endFlattened Source
dyad
component Selector
u = [Dyad.RealInput() for i in 1:nu] {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
},
"tags": []
}
}
y = Dyad.RealOutput() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
},
"tags": []
}
}
structural parameter nu::Integer = 1
structural parameter index::Integer = 1
relations
y = u[index]
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses