Terminator
Signal termination block that consumes input signals without further processing.
A termination point that serves as a signal sink in a model, accepting real-valued inputs without producing any outputs. This component is typically used at the end of signal chains to properly terminate signals that are not connected to other components.
Usage
Terminator()
Connectors
u
- This connector represents a real signal as an input to a component (RealInput
)
Behavior
Source
dyad
# Signal termination block that consumes input signals without further processing.
#
# A termination point that serves as a signal sink in a model, accepting real-valued inputs without
# producing any outputs. This component is typically used at the end of signal chains to properly
# terminate signals that are not connected to other components.
component Terminator
# Input signal to be terminated
u = RealInput() [{
"Dyad": {
"placement": {"icon": {"iconName": "input", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
}
}]
metadata {"Dyad": {"icons": {"default": "dyad://BlockComponents/Terminator.svg"}}}
end
Flattened Source
dyad
# Signal termination block that consumes input signals without further processing.
#
# A termination point that serves as a signal sink in a model, accepting real-valued inputs without
# producing any outputs. This component is typically used at the end of signal chains to properly
# terminate signals that are not connected to other components.
component Terminator
# Input signal to be terminated
u = RealInput() [{
"Dyad": {
"placement": {"icon": {"iconName": "input", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
}
}]
metadata {"Dyad": {"icons": {"default": "dyad://BlockComponents/Terminator.svg"}}}
end
Test Cases
This is setup code, that must be run before each test case.
julia
using BlockComponents
using ModelingToolkit, OrdinaryDiffEqDefault
using Plots
using CSV, DataFrames
snapshotsdir = joinpath(dirname(dirname(pathof(BlockComponents))), "test", "snapshots")
"/home/actions-runner-10/.julia/packages/BlockComponents/77kIK/test/snapshots"
Related
Examples
Experiments
Analyses
Tests