Signal ​
Base component for signal generators that output time-varying signals.
Provides common parameters for time-based signals including when the signal should start and the baseline offset value from which the signal varies. All signal generators should extend this component to maintain consistent interface and behavior across the signal library.
This component extends from SO
Usage ​
BlockComponents.Signal(start_time=0.0, offset=0.0)
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
start_time | Time at which the signal starts changing from its offset value | s | 0 |
offset | Constant value added to the signal output | – | 0 |
Connectors ​
y- This connector represents a real signal as an output from a component (RealOutput)
Source ​
dyad
"""
Base component for signal generators that output time-varying signals.
Provides common parameters for time-based signals including when the signal should start
and the baseline offset value from which the signal varies. All signal generators should
extend this component to maintain consistent interface and behavior across the signal library.
"""
partial component Signal
extends SO
"Time at which the signal starts changing from its offset value"
parameter start_time::Time = 0.0
"Constant value added to the signal output"
parameter offset::Real = 0.0
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
endFlattened Source
dyad
"""
Base component for signal generators that output time-varying signals.
Provides common parameters for time-based signals including when the signal should start
and the baseline offset value from which the signal varies. All signal generators should
extend this component to maintain consistent interface and behavior across the signal library.
"""
partial component Signal
"Real-valued output connector for the component"
y = RealOutput() {
"Dyad": {
"placement": {
"icon": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0},
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
}
}
}
"Time at which the signal starts changing from its offset value"
parameter start_time::Time = 0.0
"Constant value added to the signal output"
parameter offset::Real = 0.0
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses