BlockComponents
This is the documentation for the BlockComponents library. Here you will find the documentation for the various definitions contained in BlockComponents.
Note that this documentation is automatically generated primarily from the doc strings and metadata associated with those definitions.
Types
Interfaces.SI2SO- Partial component definition with two inputs and one output.Interfaces.SISO- Single input single output (SISO) base block, a partial component that defines the interface for blocks with one input and one output signal.Interfaces.SO- Standard output interface with a single real output connector.Interfaces.Signal- Base component for signal generators that output time-varying signals.Interfaces.SingleVariableController- Interface for single-variable continuous controllers with setpoint input, measurement input, and control output.Sources.ChirpLaw- This enum defines the available chirp typesTables.ExtrapolationType- Specifies the extrapolation method used for the 1D innterpolation when trying to access values outside of the given data.Tables.InterpolationDimension- Specifies the interpolation method for each dimension in 2D table interpolation (InterpolatedTable).Tables.InterpolationType- Specifies the interpolation method used for 1D interpolation in theInterpolationcomponent.
Components
Continuous.Derivative- Filtered derivative approximation with configurable time constant and gain.Continuous.FirstOrder- First-order filter with a single real pole and adjustable gain.Continuous.Integrator- Integrates the input signal with optional gain factor.Continuous.LimPID- PID controller with limited output, back calculation anti-windup compensation, setpoint weighting and feed-forwardContinuous.LimPIDExternalDerivative- PID controller with limited output, anti-windup, and an external derivative input.Continuous.Plant- Second-order linear system for testing control designs.Continuous.SecondOrder- Second-order filter with configurable gain, bandwidth, and damping ratio.Continuous.StateSpace- Linear state-space system with operating point support.Continuous.Tests.StateSpaceTest- Test component for StateSpace block demonstrating basic functionality.Math.Add- Weighted adder that outputs the sum of two scalar inputs with configurable gains.Math.Add3- Weighted summation block that adds three scalar inputs with configurable gains.Math.Division- Divides first input by second input.Math.Feedback- Computes the difference between a reference input and a feedback input.Math.Gain- Multiplies input signal by a constant gain factor.Math.Product- Multiplies two input signals and outputs their product.Math.ReverseCausality- Forces equality between two input signals by computing an implicit output.Nonlinear.Limiter- Signal limiter that constrains input values between specified boundaries.Nonlinear.SlewRateLimiter- Limits the rate of change of a signal between specified rising and falling rates.Routing.RealPassThrough- Pass a Real signal through without modification.Routing.Terminator- Signal termination block that consumes input signals without further processing.Sources.Chirp- TheChirpblock generates a time-varying frequency sweep signal (chirp).Sources.Constant- Provides a constant output signal of value k.Sources.ContinuousClock- Generates a continuous time signal that starts counting from a specified time.Sources.Cosine- Generates a cosine wave with configurable parameters.Sources.CosineVariableFrequencyAndAmplitude- Cosine voltage source with variable frequency and amplitudeSources.ExpSine- Exponentially damped sine wave with configurable amplitude, frequency, and damping.Sources.Pulse- Single pulse generator with configurable amplitude, duration, and start time.Sources.Ramp- Generates a linearly increasing signal from an offset to a target value over a specified duration.Sources.Sine- Generates a sine wave signal with configurable parameters.Sources.SineVariableFrequencyAndAmplitude- Sine voltage source with adjustable frequency and amplitude through external signals.Sources.Square- Square wave generator that alternates between positive and negative values.Sources.Step- Generates a step signal that transitions fromoffsettoheight+offsetat the specified time.Sources.Triangular- Triangular waveform generator with configurable amplitude and frequency.Tables.Interpolation- Performs interpolation on input values using a specified dataset and interpolation method.Tables.ParameterizedInterpolation- Performs interpolation of values based on an input signal using externally defined parameters.Tables.ScalarInterpolation- Performs interpolation on input values using a specified dataset and interpolation method.Tables.Tests.ParameterizedInterpolationExtrapolation- Tests parameterized interpolation with extrapolation on a mass-spring-damper system.
Tests
Continuous.Tests.DerivativeIntegratorTerminator- Test component that demonstrates the chained behavior of differentiation and integration of a sine signal.Continuous.Tests.FirstOrder- Test fixture for evaluating first-order system response to constant input.Continuous.Tests.LimPID- Test bench for a limited PID controller connected to a plant model with step input.Continuous.Tests.LimPIDExternalDerivative- Test bench for the LimPIDExternalDerivative controller connected to a plant model.Continuous.Tests.SecondOrder- Second-order system test with constant input.Math.Tests.Add- Adds two constant values to produce a sum of 3.Math.Tests.Add3- Test the functionality of the Add3 block by connecting three constant inputs.Math.Tests.Division- Division operation that divides a first input by a second input.Math.Tests.Feedback- Computes the difference between two input signals.Math.Tests.Product- Multiplies two constant values together.Nonlinear.Tests.Limiter- Test harness for the Limiter component that constrains signals to specified bounds.Nonlinear.Tests.SlewRateLimiter- Test component that validates SlewRateLimiter behavior with a sinusoidal input.Sources.Tests.Chirp- Test component that verifies linear, quadratic, and exponential chirp signal generators.Sources.Tests.ContinuousClock- Test that evaluates a continuous clock signal integrated over time.Sources.Tests.Cosine- Tests the integration of a cosine signal with configurable parameters.Sources.Tests.ExpSine- Test component that connects an exponentially damped sine wave to an integrator for validation.Sources.Tests.Pulse- Generates a pulse signal with configurable parameters and integrates it.Sources.Tests.Ramp- Test passing a ramp signal to an integrator for verification purposes.Sources.Tests.Sine- Test component that integrates a sine wave with specific parameters.Sources.Tests.Square- Connects a square wave generator to an integrator to test integration of a periodic signal.Sources.Tests.Step- Test that validates step response behavior by connecting a step signal to a terminator.Sources.Tests.Triangular- A test component that integrates a triangular signal over time.Sources.Tests.VariableSinCos- Test component for sine and cosine generators with variable frequency and amplitude inputs.Tables.Tests.InterpolationExtrapolation- Tests interpolation with extrapolation by applying linear interpolation with constant extrapolation.Tables.Tests.InterpolationFile- Tests time-based interpolation using data from a CSV file.Tables.Tests.InterpolationJuliaHubDataset- Test time-dependent interpolation of JuliaHub dataset values.Tables.Tests.InterpolationTable- Tests interpolation by applying linear interpolation to a dataset of squares.Tables.Tests.ScalarInterpolationFile- Tests time-based interpolation using data from a CSV file.