Sampler Icon
DiscretePrimitives.Sampler
Sampler(; name, initial_condition=0.0)A sampler component that samples a continuous-time signal at discrete time instants.
Arguments
name: Component nameinitial_condition: Initial value of the sampled output (default: 0.0)
Variables
u(t): Continuous-time input signaly(t): Discrete-time sampled output signal
Usage
PrimitiveComponents.DiscretePrimitives.Sampler()
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
Behavior of this component cannot be rendered because it includes path variables.
Source
"""
Sampler(; name, initial_condition=0.0)
A sampler component that samples a continuous-time signal at discrete time instants.
# Arguments
- `name`: Component name
- `initial_condition`: Initial value of the sampled output (default: 0.0)
# Variables
- `u(t)`: Continuous-time input signal
- `y(t)`: Discrete-time sampled output signal
"""
external component Sampler@[input inclk, input outclk]
u = RealInput@[inclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -40, "y1": 450, "x2": 60, "y2": 550, "rot": 0}
},
"tags": []
}
}
y = RealOutput@[outclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 960, "y1": 450, "x2": 1060, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
metadata {
"Dyad": {
"icons": {"default": "dyad://PrimitveComponents/Sampler.svg"},
"doc": {"behavior": false}
}
}
end
Flattened Source
"""
Sampler(; name, initial_condition=0.0)
A sampler component that samples a continuous-time signal at discrete time instants.
# Arguments
- `name`: Component name
- `initial_condition`: Initial value of the sampled output (default: 0.0)
# Variables
- `u(t)`: Continuous-time input signal
- `y(t)`: Discrete-time sampled output signal
"""
external component Sampler
u = RealInput@[inclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -40, "y1": 450, "x2": 60, "y2": 550, "rot": 0}
},
"tags": []
}
}
y = RealOutput@[outclk]() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 960, "y1": 450, "x2": 1060, "y2": 550, "rot": 0}
},
"tags": []
}
}
relations
metadata {
"Dyad": {
"icons": {"default": "dyad://PrimitveComponents/Sampler.svg"},
"doc": {"behavior": false}
}
}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses