Working with Toolboxes

Toolbox libraries contain commonly used, but more complex, compound blocks for controls, delay approximation, dynamic systems, electrical, electromechanical, eDrives and systems, fixed point, hydraulics, logic, oil and gas, process, quaternion, signal generation, and thermal design.

Controls toolbox

Name

Description

Hysteresis

Hysteresis on/off controller model

LagFilter

Simple lag filter model

LeadFilter

Simple lead filter model

P

Proportional controller model

PI

Proportional integral controller model

PID

Proportional integral derivative model

RateFeedback

Rate feedback controller model

RateLimited

Rate limit controller

 

Delay Approximation toolbox

Name

Description

Pade1

First-order Pade approximation to a time delay

Pade2

Second-order Pade approximation to a time delay

Pade3

Third-order Pade approximation to a time delay

Pade4

Fourth-order Pade approximation to a time delay

 

Dynamic Systems toolbox

Name

Description

Antenna

Position control of flexible antenna

ReducedOrderBeam

Reduced order second state beam model

Reel

Wire speed control on a motor-controlled take-up reel

 

eDrives toolbox

The eDrives toolbox contains high-fidelity motor models, rotational and translational load blocks, brush and brushless PWM amplifiers, sensors, controllers, filters, and discrete integrators. This toolbox is available with the Altair Embed/eDrives add-on module.

Electric toolbox

Name

Description

PowerSupply

Two diode, full wave rectified, DC power supply with 60 Hz 110 V AC input

 

Electromechanical toolbox

Name

Description

2DCMotors

Two motors connected by a flexible belt; when the motor speeds are different, the slower motor acts as drag slowing the faster motor based on belt stiffness

ACDQMotor

3-phase AC motor model that utilizes DQ coordinate transformation for converting 3-phase to 2-phase

AnalogToDigital

Analog-to-digital converter model

Crane

Crane payload model

DCMotor

Armature-controlled DC motor model

DigitalToAnalog

Digital-to-analog converter model

Encoder

Encoder model with (amplitude) resolution defined by the Quantization Value

FourChanMultiplexer

4-channel multiplexer model

Hoist

One-mass nonlinear hoist way model

PWM

Pulse wave modulation model

Stepper

Stepper motor model suitable for both Variable Reluctance (VR) and Permanent Magnet (PM) types

Fixed point toolbox

Name

Description

3PhaseSin-variable freq

3-phase sin waveform

3PhaseSinSrc

3-phase sin waveform

Analog Devices 5324 DAC

Write a fractional data value to SPI for AD 5314/5324 format

cascadeable counter

Counter with overflow

Count Down

Counter down

Count Up

Counter up

Derivative32

Outputs Derivative of input

Detect Falling Edge

Produce pulse on falling edge

Detect Rising Edge

Produce pulse on rising edge

Get Fractional Part

Outputs fractional part of input

Integ16

16-bit integrator

Integ32

32-bit integrator

Median Filter

Median filter

Newton Raphson Inverse16

Newton Raphson inverse approximation

OneShot

Hold the value of 1 the first time it is triggered

PI16

16-bit PI controller

PI32

32-bit PI controller

PI32test

32-bit PI controller test

PID16

16-bit PID controller

PID16test

16-bit PID controller test

PID32

32-bit PID controller

Ramp16

16-bit periodic ramp

Ramp32

32-bit periodic ramp

ramp32-variable freq

32-bit variable frequency ramp

Rate Limiter

Rate of change per unit of time

Resettable Counter

Resettable counter

Resettable Max

Resettable maximum counter

Resettable One Shot

Hold the value of 1 the first time it is triggered. A pulse on the reset line will reset the output to 0, allowing another trigger to actuate it

shortToLong

Join two shorts to long

SpeedCalc32

32-bit speed calculator from quadrature encoder

Time of day

Day, hour, minute, second calculator

Toggle State on Pulse

Toggle state on pulse (Toggles from 0 to 1 when input is 1 and holds last value when input is 0)

triangle16

16-bit triangle wave generator

triangle32

32-bit triangle wave generator

VariableFrequencyRamp32

32-bit variable frequency ramp

Zero Cross

Point where sign of the function changes from negative to positive represented by the crossing of the x-axis

 

Hydraulic toolbox

Category

Name

Description

Actuator

HydraulicMotor

Hydraulic motor

Actuator

TwinChamberActuator

Twin chamber actuator

Example

CompleteSystem

 

MechanicalLoad

Linear

Linear load

MechanicalLoad

Rotational

Rotational load

MinorLoss

Bend

Fluid flow through a pipe bend

MinorLoss

SuddenContraction

Sudden contraction of fluid due to an exit from a large chamber into a pipe

MinorLoss

SuddenExpansion

Sudden expansion of fluid due to exit into a large chamber

Misc

MassWithLimits

 

Mics

Volume

 

Orifice

 

Flow through an orifice

Pipes

Conduit

Conduit

PowerLoss

 

Power loss and temperature rise in fluid

Pumps

PosDisPump

Downstream flow rate of positive displacement pump

Pumps

PressureCompPump

Upstream flow rate of pressure compensated pump

SplitMerg

1OrificeSplit

Split fluid stream into two with one orifice

SplitMerg

3WaySplit

Split fluid stream into three

SplitMerg

Merge

Merge two fluid streams

SplitMerg

Merge3Inlets

Merge three fluid streams into one with an orifice on the exit

SplitMerg

MergeAlgebraic

Join two streams algebraically without introducing a pressure state

SplitMerg

MergeAlgebraic3Inlets

Join three streams algebraically without introducing a pressure state

SplitMerg

PlenumMerge

Merge two fluid streams; the downstream boundary condition is flow rate

SplitMerg

PlenumMerge3Inlets

Merge three fluid streams; the downstream boundary condition is flow rate

SplitMerg

PressureTransients

Pressure transients in hydraulic conduits

SplitMerg

SplitWithOrifices

Split fluid stream into two; each exit has an orifice

Valves

RegulatingValve

Regulating valve model

Valves

ReliefValve

Relief valve model

 

Logic toolbox

Name

Description

LogicBlock

Blocks that are useful for logic and timing circuits

rsFlipFlop

RS flip flop

Shift Register

Clock unit delay; see also unitDelay (1Z) block

 

Oil and gas toolbox

Name

Description

gas pipeline flow

Weymouth gas flow estimator model

gas pipeline flow rates

Weymouth, Colebrook, and Reynolds gas flow rate estimator

gasValve

 

gasValveMKS

 

gasValveTest

 

testDelay

 

 

Process toolbox

Name

Description

ContinuousStir

Simple continuous stirred tank reactor model

Distillation

Binary distillation column

NonIsothermal

 

 

Quaternion operation toolbox

Name

Description

QuaternionOperations

Quaternion blocks that provide fundamental operations of hypercomplex numbers

 

Signal generation toolbox

Name

Description

3PhaseSinusoid

3-phase sinusoidal signal generator model

CallTime

Calendar time model

dt

dt model that calculates simulation update time in seconds

 

Thermal toolbox

Name

Description

HeatExchanger

Heat exchange model using Log Mean temperature difference

 

Tools toolbox

Name

Description

AvgValue

Average value estimator for a periodic signal

DigitalIntegrator: BackwardRectangular

Backwards rectangular digital integrator model

DigitalIntegrator: ForwardRectangular

Forward rectangular digital integrator model

DigitalIntegrator: Trapezoidal

Trapezoidal digital integrator model

Discrete1stOrderXfer

Discrete first order transfer function

DiscreteDerivative

Discrete derivative model

DiscreteDifference

Discrete difference model

Hysteresis

Hysteresis model

MagnitudePhase

Magnitude and phase calculation model

MaxValue

Maximum value of periodic waveform

Mean

Mean

MinValue

Minimum value of periodic waveform

Period

Period estimator model

PhaseDifference

Phase difference estimator model

PulseCounter

Counter model

RateLimitedRamp

Limit the rate of a ramp (or any input signal)

Repeating Down Count

Count down from a set value to 0 and resets

Resettable Counter

Resettable counter

RMS

Calculates Root Mean Square value of a signal

RT factor

Output real time factor

stdDev

Standard deviation

Sweep

Parameter sweep support block

TrimmedIntegrator

Trimmed integrator model

VectorAnalysis

Vector analysis model