# EXAMPLES

COMPONENT: simevents
EXAMPLENAME: KanbanSystemExample
EXAMPLETITLE: Modeling a Kanban Production System
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
A production system that uses kanbans to manage production activities. Analysis of simulation results highlights problems in the system and suggests ways to improve its performance.


COMPONENT: simevents
EXAMPLENAME: ObserveEntitiesUsingSimulationObserverExample
EXAMPLETITLE: Observe Entities Using simevents.SimulationObserver Class
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Use simevents.SimulationObserver object to count entity departures and acquire departure timestamps.


COMPONENT: simevents
EXAMPLENAME: TaskPreemptionExample
EXAMPLETITLE: Example Model for Task Preemption
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
The example shows preemption(replacement) of low priority tasks by a high priority task in a multitasking processor. In the model, the Entity Server block represents the task processor presented with a capacity to process multiple concurrent tasks.


COMPONENT: simevents
EXAMPLENAME: CustomEntityStorageBlockWithTwoTimerEventsExample
EXAMPLETITLE: Implement the Custom Entity Storage Block with Two Timer Events
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Implement a discrete-event System Object™ which represents a custom entity storage block with two timer events. The model also includes an Entity Generator block that generates entities and two Entity Terminator blocks.


COMPONENT: simevents
EXAMPLENAME: TriggerADiscreteEventChartOnMessageArrivalExample
EXAMPLETITLE: Trigger a Discrete-Event Chart Block on Message Arrival
PRODUCT: MATLAB;SimEvents;Stateflow
DESCRIPTION:
Trigger a Discrete-Event Chart Block on the message arrival when generating parts in a facility and performing quality assurance. In the example, behaviors of a Discrete-Event Chart and Stateflow® Chart blocks are compared. Both blocks require a Stateflow® license. The example shows that, a Discrete-Event Chart block executes immediately upon the arrival of a message and does not wait for the next sample time hit.


COMPONENT: simevents
EXAMPLENAME: DiningPhilosophersExample
EXAMPLETITLE: Dining Philosophers Problem
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
The Dining Philosophers problem is a classical problem, originally formulated by E.W. Dijkstra, to demonstrate classical problems in computer science and the programming of concurrent or parallel processes.


COMPONENT: simevents
EXAMPLENAME: FlushEntitiesExample
EXAMPLETITLE: Flush Entities from a Queue-Server
PRODUCT: MATLAB;Simulink;SimEvents;Stateflow
DESCRIPTION:
Use a Discrete-Event Chart block to model a queue-server that can flush entities when it receives a message on the "FlushCmd" port.


COMPONENT: simevents
EXAMPLENAME: MatchEntitiesBasedOnAttributesExample
EXAMPLETITLE: Match Entities Based on Attributes
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Build a model to store and match entities representing bicycle components. The model uses an Entity Store block for storage and an Entity Selector block to match a set of bicycle wheels to the corresponding size frame for assembly.


COMPONENT: simevents
EXAMPLENAME: ProcessBatchedEntitiesUsingEventActionsExample
EXAMPLETITLE: Group Entities Using Batching
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Create, process, and split batched entities using Entity Batch Creator and Entity Batch Splitter blocks. In the model, an Entity Generator block is used to represent produced parts in a facility. The parts are batched by an Entity Batch Creator block. A batch is processed by an Entity Server block. When the processing is complete, the batch is split into individual parts by the Entity Batch Splitter block for their delivery.


COMPONENT: simevents
EXAMPLENAME: TriggerSimulinkComponentsWithDiscreteEventsExample
EXAMPLETITLE: Trigger Simulink Components with Discrete Events in SimEvents
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
Use Simulink Function blocks to timestamp entities, pass entity attributes to Simulink® components, and create notification events for routing. You can Use Simulink Function blocks to grab entity attributes pass them to Simulink® components for processing and then pass them back to your SimEvents® model.


COMPONENT: simevents
EXAMPLENAME: StartWithASimpleQueuingSystemExample
EXAMPLETITLE: Start with a Simple Queuing System
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
This is a simple queueing system with Entity Generator, Entity Queue, Entity Server, and Entity Terminator blocks. In this example, an entity represents a tank of a truck that arrives at a gas station. The attribute of an entity represents the current gas level in a tank. Event actions represent the changes of the gas level in a tank. Tanks are randomly generated, queued, and they are serviced with a pump which transfers a constant amount of gas for one second. Tanks depart from the station with their new total gas amount.


COMPONENT: simevents
EXAMPLENAME: GroceryStoreModelExample
EXAMPLETITLE: Grocery Store Model
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
The grocery store example uses multiple simulations approach to optimize the number of shopping carts required to prevent long customer waiting lines.


COMPONENT: simevents
EXAMPLENAME: CustomVisualizationExample
EXAMPLETITLE: Using Custom Visualization for Entities
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
These examples show how you can create MATLAB®-based custom visualization for entities. The example illustrates the visualization of a restaurant layout with customer entities entering, dining, and leaving.


COMPONENT: simevents
EXAMPLENAME: TankFillingExample
EXAMPLETITLE: Modeling Hybrid Systems - Tank Filling
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
A hybrid system with both continuous time and discrete event sections. The discrete event part models tanks, represented by entities, which are being queued and need to be filled up. Each tank has a "Capacity" attribute. The continuous time part models the process of filling up a tank, modeled by an Integrator. When a tank is filled to capacity, this event can be detected by a Hit Crossing block, which will generate a message corresponding to this event. The generated message will trigger the server to release the tank.


COMPONENT: simevents
EXAMPLENAME: ResourceSchedulingUsingDataStoreMemoryBlockExample
EXAMPLETITLE: Resource Scheduling Using MATLAB Discrete-Event System and Data Store Memory Blocks
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Model resource scheduling using data exchange between the MATLAB Discrete-Event System block and the Data Store Memory block.


COMPONENT: simevents
EXAMPLENAME: QueueEntityOverwritingPoliciesExample
EXAMPLETITLE: Queue Entity Overwriting Policies
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
You can specify what Entity Queue block does when the block reaches its capacity by setting the entity overwriting policy. Specify the policy by selecting or clearing the Overwrite the oldest element if queue is full check box.


COMPONENT: simevents
EXAMPLENAME: SelectionServerExample
EXAMPLETITLE: Selection Server - Select Specific Entities from Server
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
Use the MATLAB Discrete Event System block to write a custom N-Server from which specific entities can be selected using a key lookup. Passengers enter from the IN port of the block and are stored in the block until a message arrives at the KEY port carrying a lookup key. Upon receiving this message, the system schedules an "Iterate" event during which it can visit every entity stored in it and output the one that matches the key.


COMPONENT: simevents
EXAMPLENAME: CountSimultaneousDeparturesFromAServerExample
EXAMPLETITLE: Example Model to Count Simultaneous Departures from a Server
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Count the simultaneous departures of entities from a server. Use the Number of entities departed, d statistic from the Entity Server block to learn how many entities have departed the block. The output signal also indicates when departures occurred. This method of counting is cumulative throughout the simulation.


COMPONENT: simevents
EXAMPLENAME: CanBusExample
EXAMPLETITLE: Effects of Communication Delays on an ABS Control System
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
How stochastic network traffic causes timing latency and uncertainty in an anti-lock braking system that uses CAN communications.


COMPONENT: simevents
EXAMPLENAME: UseALogicalQueueToUnderstandQueueingBehaviorExample
EXAMPLETITLE: Partition a Queue to Understand Queue Length
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
You can partition a queue to understand more details about the queue length and behavior during simulation.


COMPONENT: simevents
EXAMPLENAME: DynamicVoltageScalingExample
EXAMPLETITLE: Modeling Load Within a Dynamic Voltage Scaling Application
PRODUCT: MATLAB;Statistics and Machine Learning Toolbox;SimEvents;Simulink
DESCRIPTION:
How, depending on the workload, a AT90S8535 microcontroller uses a dynamic voltage scaling (DVS) feature to adjust the input voltage. By lowering the input voltage when the workload is low, the microcontroller reduces energy consumption while guaranteeing quality of service. The DVS controller is based on an online gradient estimation technique called infinitesimal perturbation analysis (IPA). In a single simulation of a parameterized system, not the large number of simulations required by a traditional finite-difference approach, IPA can provide sensitivity information that yields a first-order approximation of the system performance metrics as a function of the parameters.


COMPONENT: simevents
EXAMPLENAME: ResourceAllocationExample
EXAMPLETITLE: Resource Allocation from Multiple Pools
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
A technique for allocating resources from multiple resource pools. It shows how to choose a pool from which to draw a resource, based on given criteria.


COMPONENT: simevents
EXAMPLENAME: MachineFailureExample
EXAMPLETITLE: Modeling Machine Failure
PRODUCT: MATLAB;SimEvents;Simulink;Stateflow
DESCRIPTION:
Model random failures and scheduled maintenance of a machine during regular operation. In the model, the machine can transition between three different states.


COMPONENT: simevents
EXAMPLENAME: ModelForDiscouragedArrivalExample
EXAMPLETITLE: Adjust Entity Generation Times Through Feedback
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
A queuing system in which feedback influences the arrival rate. The goal of the feedback loop is to stabilize the entity queue by slowing the entity generation rate of the Entity Generator block as more entities accumulate in the Entity Queue block and the Entity Server block.


COMPONENT: simevents
EXAMPLENAME: CustomizingEntityServiceTimeExample
EXAMPLETITLE: Customize Entity Service Time
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
In a basic queuing system, you can use an Entity Server block to model delays based on the processes in your system. You can determine the source that specifies the delay by changing the Service time source parameter of the Entity Server block.


COMPONENT: simevents
EXAMPLENAME: ExtractFoundEntitiesExample
EXAMPLETITLE: Extract Found Entities
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
You can use the Entity Find block to find entities and extract them from their location to reroute. In this example, 3 entities found in the previous example are extracted from the system to be terminated.


COMPONENT: simevents
EXAMPLENAME: UseAGateToImplementAFailureStateExample
EXAMPLETITLE: Use a Gate to Implement a Failure State
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
For any state that represents a server inability or refusal to accept entity arrivals even though the server is not necessarily full, a common implementation involves an Entity Gate block preceding the server.


COMPONENT: simevents
EXAMPLENAME: TriggerEntityFindBlockWithEventActionsExample
EXAMPLETITLE: Trigger Entity Find Block with Event Actions
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
You can trigger the Entity Find block with event actions. In this example, the Entity Find block is triggered when an entity enters the Entity Server block. Modify the previous example by removing the Trigger Entity Generator and by adding the Entity Output Switch, Entity Server1, Entity Terminator2 and Scope blocks to the model and connect them as shown.


COMPONENT: simevents
EXAMPLENAME: EstimatingAssemblyLineThroughputExample
EXAMPLETITLE: Job Scheduling and Resource Estimation for a Manufacturing Plant
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
Model a manufacturing plant. The plant consists of an assembly line that processes jobs based on a pre-determined schedule. This example walks you through a workflow for:


COMPONENT: simevents
EXAMPLENAME: QueuingStrategiesExample
EXAMPLETITLE: Comparing Queuing Strategies
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
Have you ever been in a supermarket checkout and wondered why you are in the slowest line? This example shows how queuing systems can be modeled in SimEvents for this type of application. Two parallel versions of a simple model of a four register supermarket counter are presented - one that uses four separate queues and one with a single "serpentine" queue that feeds all registers.


COMPONENT: simevents
EXAMPLENAME: CustomEntityStorageBlockExample
EXAMPLETITLE: Implement the Custom Entity Storage Block
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Implement a discrete-event System Object™ using a MATLAB Discrete-Event system block. The model also includes an Entity Generator block and an Entity Terminator block. The custom block accepts entities and forwards them with a delay of 4.


COMPONENT: simevents
EXAMPLENAME: ServePreferredCustomersFirstExample
EXAMPLETITLE: Serve Preferred Customers First
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
In this example, two types of customers enter a queuing system. One type, considered to be preferred customers, are less common but require longer service. The priority queue places preferred customers ahead of nonpreferred customers. The model plots the average system time for the set of preferred customers and separately for the set of nonpreferred customers in a Dashboard Scope block.


COMPONENT: simevents
EXAMPLENAME: FindAndExamineEntitiesExample
EXAMPLETITLE: Find and Examine Entities
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Use the Entity Find block to find and examine entities at their location. In this example, the block finds entities that are tagged with a resource from the Resource Pool block.


COMPONENT: simevents
EXAMPLENAME: GG1QueuingSysExample
EXAMPLETITLE: G/G/1 Queuing System and Little's Law
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
Model a single-queue single-server system in which the interarrival time and the service time are uniformly distributed with fixed means of 1.1 and 1, respectively. The queue has an infinite storage capacity. In the notation, the G stands for a general distribution with a known mean and variance; G/G/1 means that the system's interarrival and service times are governed by such a general distribution, and that the system has one server. You can change the variances of the uniform distributions. You can use this model to examine Little's law.


COMPONENT: simevents
EXAMPLENAME: MD1QueuingSysExample
EXAMPLETITLE: M/D/1 Queuing System
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
Model a single-queue single-server system that has a Poisson arrival process and a server with constant service time. The queue has an infinite storage capacity. In the notation, the M stands for Markovian; M/D/1 means that the system has a Poisson arrival process, a deterministic service time distribution, and one server.


COMPONENT: simevents
EXAMPLENAME: QueuingSystemToChangeEntityAttributesExample
EXAMPLETITLE: Build a Simple Queuing System to Change Entity Attributes
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
You can attach attributes to entities to represent their features. In a queueing system, you can use actions as responses to events and change entity attributes. For instance, you can change the value of an entity attribute when the entity enters and exits the Entity Queue block. In the Entity Queue block, in the Event actions tab, you can see the set of events for which you can create actions.


COMPONENT: simevents
EXAMPLENAME: SchedulerCustomExample
EXAMPLETITLE: Develop Custom Scheduler of a Multicore Control System
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
Model a customer scheduler using the SimEvents® MATLAB Discrete-Event System block. The model includes a Scheduler block that can simulate a multicore system with an arbitrary number of cores, tasks, and mutually exclusive resources.


COMPONENT: simevents
EXAMPLENAME: EntityPriorityExample
EXAMPLETITLE: Using Entity Priority to Sequence Departures
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
Use entity priority to sequence entity departures when multiple entities are available to depart. The example models an airport check-in counter where passengers arrive to be checked in. Passengers can have either First-Class, Business Class, or Economy Class reservations, modeled using entity priority values 1, 2 and 3 respectively.


COMPONENT: simevents
EXAMPLENAME: ServerWithPauseExample
EXAMPLETITLE: Server with Pause/Continue
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
Use a MATLAB Discrete Event System block to model a single server that can pause service. The input port IN receives entities to be served. Additionally, the system may receive sporadic pause commands on port PauseCmd. If the message received on the PauseCmd port carries data=1, the system pauses. The system reschedules service for the current entity when it receives a continue message on this port, i.e. a message that carries data=0.


COMPONENT: simevents
EXAMPLENAME: RouteVehiclesInAGasStationEntityOutputSwitchBlockExample
EXAMPLETITLE: Route Vehicles Using an Entity Output Switch Block
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Route vehicles to two different pumps in a gas station by controlling an Entity Output Switch block.


COMPONENT: simevents
EXAMPLENAME: CustomEntityStorageBlockWithTwoStoragesExample
EXAMPLETITLE: Implement the Custom Entity Storage Block with Two Storages
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Implement a discrete-event System Object™ which represents a custom entity storage block with two storages. The model also includes two Entity Generator blocks to generate two types of entities and an Entity Terminator block.


COMPONENT: simevents
EXAMPLENAME: BuildAFirewallAndAnEmailServerExample
EXAMPLETITLE: Build a Firewall and an Email Server
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
You can use the Entity Find block to monitor multiple blocks in a model, to examine, and to extract entities.


COMPONENT: simevents
EXAMPLENAME: NoncumulativeEntityCountExample
EXAMPLETITLE: Example Model for Noncumulative Entity Count
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Count entities, which arrive to an Entity Terminator block, in a noncumulative way by resetting the counter at each time instant.


COMPONENT: simevents
EXAMPLENAME: AttributeQueueToModelABottleStorageTankExample
EXAMPLETITLE: Use Queue Event Actions to Model a Storage Tank
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
Use Entity Queue block event actions, a Simulink Function block, and an Entity Gate block to model a bottle storage system with a limited capacity.


COMPONENT: simevents
EXAMPLENAME: CustomEntityStorageBlockWithIterationEventExample
EXAMPLETITLE: Implement the Custom Entity Storage Block with Iteration Event
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Implement a discrete-event System Object™ which represents a custom entity storage block with an iteration event. The model also includes an Entity Generator block that generates Wheels with various Diameter values.


COMPONENT: simevents
EXAMPLENAME: SortingEntitiesBasedOnPriorityCustomerExample
EXAMPLETITLE: Serve High-Priority Customers by Sorting Entities Based on Priority
PRODUCT: MATLAB;SimEvents;Statistics and Machine Learning Toolbox
DESCRIPTION:
Minimize the time required to serve high-priority customers by using a priority queue and Entity Input Switch and Entity Output Switch blocks. Customers are served based on their service priorities. In this example, two types of customers enter a queuing system. One type represents high-priority customers with high urgency. The second type of customers are lower priority and are served with less urgency. The priority queue places high-priority customers ahead of low-priority customers.


COMPONENT: simevents
EXAMPLENAME: GettingStartedSimpleQueueExample
EXAMPLETITLE: A Simple Queuing System
PRODUCT: MATLAB;SimEvents;Simulink
DESCRIPTION:
Open the example to investigate a simple queuing system that generates, queues, services, and terminates entities.


COMPONENT: simevents
EXAMPLENAME: MM1QueuingSysExample
EXAMPLETITLE: M/M/1 Queuing System
PRODUCT: MATLAB;Simulink;SimEvents
DESCRIPTION:
Model a single-queue single-server system with a single traffic source and an infinite storage capacity. In the notation, the M stands for Markovian; M/M/1 means that the system has a Poisson arrival process, an exponential service time distribution, and one server. Queuing theory provides exact theoretical results for some performance measures of an M/M/1 queuing system and this model makes it easy to compare empirical results with the corresponding theoretical results.


COMPONENT: simevents
EXAMPLENAME: RandomNumberQueuingNetworkExample
EXAMPLETITLE: Model Traffic Intersections as a Queuing Network
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Create a SimEvents® model to represent a vehicle traffic network and to investigate mean waiting time of vehicles when the network is in steady-state.


COMPONENT: simevents
EXAMPLENAME: DiscreteEventChartPreciseTimingExample
EXAMPLETITLE: Discrete-Event Chart Precise Timing
PRODUCT: MATLAB;SimEvents;Stateflow
DESCRIPTION:
The precise timing that a Discrete-Event Chart block executes as it generates parts in a facility. The behavior of the Discrete-Event Chart and the Stateflow® blocks are compared. Both blocks require a Stateflow® license. Using a Discrete-Event Chart block, the example shows that the temporal resolution of events can be arbitrarily precise and independent from the model sample time.


COMPONENT: simevents
EXAMPLENAME: SortEntitiesUsingEntityQueueBlockExample
EXAMPLETITLE: Sort Entities Using the Entity Queue Block
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
How to sort entities by changing the queue sorting policy. The Entity Queue block supports three message sorting policies:


COMPONENT: simevents
EXAMPLENAME: DynamicSchedulingDiscreteEventChartExample
EXAMPLETITLE: Dynamic Scheduling of Discrete-Event Chart Block
PRODUCT: MATLAB;SimEvents;Stateflow
DESCRIPTION:
Use the dynamic scheduling that the Discrete-Event Chart block provides. A Discrete Event Chart block can execute zero or multiple times in a time step. The example compares the behaviors of the Discrete-Event Chart and Stateflow® Chart blocks. Both blocks require a Stateflow® license.


COMPONENT: simevents
EXAMPLENAME: CustomEntityGeneratorBlockExample
EXAMPLETITLE: Implement the Custom Entity Generator Block
PRODUCT: MATLAB;SimEvents
DESCRIPTION:
Implement a discrete-event System Object™ which represents a custom entity generator block. The custom generator block also assigns priority values and data to each generated entity. The priority values are acquired from the incoming signal from the Ramp block. The model also includes an Entity Terminator block.


COMPONENT: simrf
EXAMPLENAME: ModulateTwoToneDCSignalUsingIQModulatorExample
EXAMPLETITLE: Modulate Two-Tone DC Signal Using IQ Modulator
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Use the IQ Modulator block to Modulate a two-tone signal to RF level. Observe the impairments in the modulated output signal such as images due to gain imbalance, intermodulation distortion, and output third-order intercept (OIP3).


COMPONENT: simrf
EXAMPLENAME: CommunicationsSystemWithEmbeddedRfReceiverExample
EXAMPLETITLE: Communications System with Embedded RF Receiver
PRODUCT: Communications Toolbox;MATLAB;RF Blockset
DESCRIPTION:
Learn how to integrate an RF receiver together with baseband signal processing algorithms to model an end-to-end communications system.


COMPONENT: simrf
EXAMPLENAME: ExplicitlySimulateResistorThermalNoiseExample
EXAMPLETITLE: Explicitly Simulate Resistor Thermal Noise
PRODUCT: MATLAB;RF Toolbox;RF Blockset;Simscape;Simulink
DESCRIPTION:
Use the Noise block to calculate the classic thermal noise floor, kT, for a matched resistor circuit. Model configuration is as follows:


COMPONENT: simrf
EXAMPLENAME: LCBandpassPisimrfExample
EXAMPLETITLE: Use Ladder Filter Block to Filter Gaussian Noise
PRODUCT: MATLAB;RF Blockset;DSP System Toolbox
DESCRIPTION:
Provides complex random noise in Gaussian form as input to an LC Bandpass Pi block. A DSP System Toolbox™ fallback for Spectrum Scope block plots the filtered output.


COMPONENT: simrf
EXAMPLENAME: ExecutableSpecificationOfADirectConversionReceiverExample
EXAMPLETITLE: Executable Specification of Direct Conversion Receiver
PRODUCT: Communications Toolbox;DSP System Toolbox;MATLAB;RF Blockset;Simulink
DESCRIPTION:
Simulate the sensitivity performance of a direct conversion architecture with the following RF impairments.


COMPONENT: simrf
EXAMPLENAME: RadarSystemModelingExample
EXAMPLETITLE: Radar System Modeling
PRODUCT: DSP System Toolbox;MATLAB;RF Blockset
DESCRIPTION:
Set up a radar system simulation consisting of a transmitter, a channel with a target, and a receiver.


COMPONENT: simrf
EXAMPLENAME: PAMemoryPolynomialModelSimulationAndVerificationExample
EXAMPLETITLE: PA Memory Polynomial Model Simulation and Verification
PRODUCT: MATLAB;RF Blockset;5G Toolbox
DESCRIPTION:
Verify the extracted PA model is correctly configured for time domain simulation and Explore the validity of the model for input signals with a different power level and bandwidth.


COMPONENT: simrf
EXAMPLENAME: ProtectCircuitEnvelopeModelExample
EXAMPLETITLE: Protect Circuit Envelope Model
PRODUCT: RF Blockset;Simulink Coder
DESCRIPTION:
Protect your circuit envelope model so that it can be shared to a third party without revealing implementation details and intellectual property.


COMPONENT: simrf
EXAMPLENAME: ExecutableSpecificationForSystemDesignExample
EXAMPLETITLE: Executable Specification for System Design
PRODUCT: Communications Toolbox;MATLAB;RF Blockset
DESCRIPTION:
Learn how to overcome the challenge of exchanging specifications, design information, and verification models.


COMPONENT: simrf
EXAMPLENAME: PlotSParameterDataOfChebyshevFilterExample
EXAMPLETITLE: Measure S-Parameter Data of Chebyshev Filter
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Use the S-Parameter Testbench block to measure S-parameter data of a ninth-order Chebyshev Tee LC low-pass filter.


COMPONENT: simrf
EXAMPLENAME: UseMeasuredAntennaObjectInAntennaBlockExample
EXAMPLETITLE: Use Measured Antenna Object in Antenna Block
PRODUCT: MATLAB;RF Blockset;Antenna Toolbox
DESCRIPTION:
Use measuredAntenna object in the Antenna block to model a measured antenna or array characterized by means of its S-parameters and frequency dependent far-field radiation pattern including both polarization components. The measuredAntenna object lets you replace the physical antennas from the antenna catalog with measured field data of the antenna. This example extracts data from a linear array to create a measuredAntenna object using hcreate_mAnt helper function.


COMPONENT: simrf
EXAMPLENAME: MassiveMIMOHybridBeamformingWithRFImpairmentsExample
EXAMPLETITLE: Massive MIMO Hybrid Beamforming with RF Impairments
DESCRIPTION: Employ hybrid beamforming at the transmit end of a massive MIMO communication system.
PRODUCT:
MATLAB;RF Blockset;Phased Array System Toolbox;Communications Toolbox;RF Toolbox;Parallel Computing Toolbox


COMPONENT: simrf
EXAMPLENAME: AntennaBlockExample
EXAMPLETITLE: Simulation of RF Systems with Antenna Blocks
PRODUCT: MATLAB;RF Blockset;Antenna Toolbox
DESCRIPTION:
Use the Antenna block to incorporate the effect of an antenna into an RF simulation. In this model, a single tone is fed to the transmitter and the power of the received signal at the output of the receiver is calculated.


COMPONENT: simrf
EXAMPLENAME: ModelingAnRfMmwaveTransmitterWithHybridBeamformingExample
EXAMPLETITLE: Modeling RF mmWave Transmitter with Hybrid Beamforming
PRODUCT: Communications Toolbox;MATLAB;Phased Array System Toolbox;RF Blockset;Antenna Toolbox
DESCRIPTION:
Model and simulate a 66 GHz QPSK RF transmit and receive system with a 32-element hybrid beamforming antenna.


COMPONENT: simrf
EXAMPLENAME: DesignReceiverWithADCExample
EXAMPLETITLE: Design Receiver with ADC
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Most RF receivers in modern communications or radar systems feed signals to an analog-to-digital converter (ADC). Due to their finite resolution, ADCs introduce quantization error into the system. The resolution of the ADC is determined by the number of bits and the full-scale (FS) range of the ADC.


COMPONENT: simrf
EXAMPLENAME: WirelessDigitalVideoBroadcastingWithRfBeamformingExample
EXAMPLETITLE: Wireless Digital Video Broadcasting with RF Beamforming
PRODUCT: Communications Toolbox;MATLAB;Phased Array System Toolbox;RF Blockset
DESCRIPTION:
Model a digital video broadcasting system which includes a 16 antenna phased array receiver operating at 28 GHz.


COMPONENT: simrf
EXAMPLENAME: IdbbAmpliferOldExample
EXAMPLETITLE: Intermodulation Analysis of Mathematical Amplifier
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Uses a baseband-equivalent multitone signal as input to the Amplifier block. A Simulink® Slider Gain block enables you to vary the gain from 1 to 10.


COMPONENT: simrf
EXAMPLENAME: VaryAttenuationOfSignalDuringSimulationExample
EXAMPLETITLE: Vary Attenuation of Signal During Simulation
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Use the Variable Attenuator block to attenuate a 20 dB constant signal. Use the Repeating Sequence Stair block as a Simulink control signal to vary the attenuation of the signal. In this model, the signal attenuation varies between 5 and 10 dB during simulation. To see the variation in attenuation, open and run the model.


COMPONENT: simrf
EXAMPLENAME: ModelLOPhaseNoiseExample
EXAMPLETITLE: Model LO Phase Noise
PRODUCT: MATLAB;RF Blockset;Simulink
DESCRIPTION:
Model and visualize LO phase noise. A mixer transfers local oscillator (LO) phase noise directly to its output.


COMPONENT: simrf
EXAMPLENAME: VariablePhaseShiftExample
EXAMPLETITLE: Vary Phase Of Signal During Simulation
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Use the Variable Phase Shift block to shift the phase of a sine wave to 180 degrees.Use Repeating Sequence Stair block as a Simulink control signal to control the phase of the signal. To see the variation in phase to 180 degrees, first open and run the model. During simulation, change the value of the Simulink control signal to 90 degrees and see a change in phase in the Output Scope.


COMPONENT: simrf
EXAMPLENAME: DemodulateTwoToneRFSignalUsingIQDemodulatorExample
EXAMPLETITLE: Demodulate Two-Tone RF Signal Using IQ Demodulator
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Use the IQ Demodulator block to demodulate a two-tone RF signal to DC level. Observe the impairments in the demodulated output signal such as images due to gain imbalance, intermodulation distortion, and output third-order intercept (OIP3).


COMPONENT: simrf
EXAMPLENAME: ModelSystemNoiseFigureExample
EXAMPLETITLE: Model System Noise Figure
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Model system noise figure in RF Blockset™. RF receivers amplify signals and shift them to lower frequencies. The receiver itself introduces noise that degrades the received signal. The signal-to-noise ratio (SNR) at the receiver output ultimately determines the usability of the receiver.


COMPONENT: simrf
EXAMPLENAME: ModelDirectConversionReceiverExample
EXAMPLETITLE: Model Direct Conversion Receiver
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Model a direct conversion receiver. Direct conversion receivers are sensitive to second-order intermodulation products because they transfer the RF signal directly to baseband. The RF system consists of a low-noise amplification (LNA) stage, a direct-conversion stage, and a final amplification stage.


COMPONENT: simrf
EXAMPLENAME: SParameterMeasurementOfNonlinearSystemExample
EXAMPLETITLE: Measure S-Parameter of Nonlinear System
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Use the S-Parameter Testbench block to measure the S-parameters of a nonlinear system. The system shown here includes a device under test (DUT) with a linear filter followed by a nonlinear amplifier. The system allows an external steady state input that is switched off initially. When the DUT is nonlinear, the stimulus signal created in the S-Parameter Testbench block must be small enough to operate in the linear region.


COMPONENT: simrf
EXAMPLENAME: FrequencyResponseOfAnRfTransmitreceiveDuplexFilterExample
EXAMPLETITLE: Frequency Response of RF Transmit/Receive Duplex Filter
PRODUCT: DSP System Toolbox;MATLAB;RF Blockset
DESCRIPTION:
Simulate a transmit/receive duplex filter and calculate frequency response curves from a broadband white-noise input.


COMPONENT: simrf
EXAMPLENAME: CarrierToInterferencePerfromanceOfWeaverReceiverExample
EXAMPLETITLE: Carrier to Interference Performance of Weaver Receiver
PRODUCT: MATLAB;RF Blockset;Simulink
DESCRIPTION:
A classic superheterodyne architecture filters images prior to frequency conversion. In contrast, image-reject receivers remove the images at the output without filtering but are sensitive to phase offsets.


COMPONENT: simrf
EXAMPLENAME: DesignAndSimulationOfMonopulseTrackingSystemExample
EXAMPLETITLE: Design and Simulate Monopulse Tracking System
PRODUCT: MATLAB;RF Blockset;Antenna Toolbox
DESCRIPTION:
Model and simulate a monopulse tracking system with a transmitter antenna, receiver antenna, and comparator.


COMPONENT: simrf
EXAMPLENAME: CreateCustomRfBlocksetModelExample
EXAMPLETITLE: Create Custom RF Blockset Models
PRODUCT: MATLAB;RF Blockset;Simscape
DESCRIPTION:
Write your own RF Blockset Circuit Envelope model in Simscape language for complex baseband simulation.


COMPONENT: simrf
EXAMPLENAME: AutomaticSampletimeInterpolationAtInputPortExample
EXAMPLETITLE: Automatic Sample-Time Interpolation at Input Port
PRODUCT: Communications Toolbox;MATLAB;RF Blockset
DESCRIPTION:
Learn how to manage models consisting of both digital communication and RF systems that process signals at different sampling rates.


COMPONENT: simrf
EXAMPLENAME: ModulateTwoToneDCSignalUsingIdealizedBasebandMixerBlockExample
EXAMPLETITLE: Modulate Quadrature Baseband Signals Using IQ Modulators
PRODUCT: MATLAB;RF Blockset;Communications Toolbox
DESCRIPTION:
Modulate quadrature baseband signals using two different RF Blockset™ blocks. You can use either an idealized baseband Mixer block or a circuit envelope IQ Modulator block in your model to modulate quadrature baseband signals to the RF level. Observe the impairments in the modulated output signal due to gain imbalance, third-order intercepts (OIP3) and system noise in the complex output power density and output power spectrum analyzers.


COMPONENT: simrf
EXAMPLENAME: ModelRFFilterUsingCircuitEnvelopeExample
EXAMPLETITLE: Model RF Filter Using Circuit Envelope
PRODUCT: MATLAB;RF Blockset
DESCRIPTION:
Model an RF filter using Circuit Envelope Library. In this example, you compare the input and output signal amplitudes to study the signal attenuation.


COMPONENT: simscape
EXAMPLENAME: MassSpringDamperWithControllerExample
EXAMPLETITLE: Mass-Spring-Damper with Controller
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A controlled mass-spring-damper. A controller adjusts the force on the mass to have its position track a command signal. The initial velocity for the mass is 10 meters per second. The controller adjusts the force applied by the Force Source to track the step changes to the input signal.


COMPONENT: simscape
EXAMPLENAME: MassSpringDamperInSimulinkAndSimscapeExample
EXAMPLETITLE: Mass-Spring-Damper in Simulink and Simscape
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Two models of a mass-spring-damper, one using Simulink® input/output blocks and one using Simscape™ physical networks.


COMPONENT: simscape
EXAMPLENAME: DoubleMassSpringDamperInSimulinkAndSimscapeExample
EXAMPLETITLE: Double Mass-Spring-Damper in Simulink and Simscape
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Two models of a double mass-spring-damper, one using Simulink® input/output blocks and one using Simscape™ physical networks.


COMPONENT: simscape
EXAMPLENAME: SimpleMechanicalSystemExample
EXAMPLETITLE: Simple Mechanical System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A model of a system that connects rotational and translational motion. A summing lever drives a load consisting of a mass, viscous friction, and a spring connected to its joint C. Joint B is suspended on two rotational springs connected to reference point through a wheel and axle and a gear box. Joint A is connected to a torque source through a gear box and a wheel and axle mechanism.


COMPONENT: simscape
EXAMPLENAME: MechanicalSystemWithTranslationalFrictionExample
EXAMPLETITLE: Mechanical System with Translational Friction
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A mass attached to a spring and a viscous damper. The mass is driven by an ideal velocity source through a friction element. The motion profile of the source is selected in such a way that plotting the displacement of the mass against the displacement provided by the source produces a typical hysteresis curve.


COMPONENT: simscape
EXAMPLENAME: MechanicalSystemWithTranslationalHardStopExample
EXAMPLETITLE: Mechanical System with Translational Hard Stop
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Two masses connected by a hard stop. Mass 1 is driven by an Ideal Velocity Source. As the velocity input changes direction, Mass 2 will stay at rest until Mass 1 reaches the other end of the backlash modeled by the Translational Hard Stop. Plotting the displacement of Mass 2 against the displacement of the Mass 1 produces a typical hysteresis curve.


COMPONENT: simscape
EXAMPLENAME: MechanicalRotationalSystemWithStickSlipMotionExample
EXAMPLETITLE: Mechanical Rotational System with Stick-Slip Motion
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A mechanical rotational system with stick-slip friction. An inertia is connected to a fixed point by spring and damper. The inertia is driven by a velocity source via a stick-slip friction element. The friction element has a difference between the breakaway and the Coulomb frictions, resulting in stick-slip motion of the inertia.


COMPONENT: simscape
EXAMPLENAME: LinkageMechanismExample
EXAMPLETITLE: Linkage Mechanism
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
The use of the Simscape™ Lever block in a linkage mechanism. Lever 1 and Lever 4 are first class levers with the fulcrum at the end. Lever 3 is a second class lever with the fulcrum in the middle. Lever 2 is a summing lever driven by the first and the third levers.


COMPONENT: simscape
EXAMPLENAME: CalculatingPiUsingCollidingMassesExample
EXAMPLETITLE: Calculating Pi Using Colliding Masses
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Uses a well-known physics problem to demonstrate solver performance by capturing tens of thousands of instantaneous events that occur in under a second. On a one-dimensional path, a large mass approaches a small mass bounded by a wall on the far side. As the large mass strikes the small mass, the small mass bounces off the wall and reverses direction toward the large mass. Each collision is perfectly elastic. As the large mass approaches the wall, collisions with the small mass occur more and more rapidly until the large mass reverses direction and eventually travels fast enough in the opposite direction that the small mass never catches it.


COMPONENT: simscape
EXAMPLENAME: RCCircuitInSimulinkAndSimscapeExample
EXAMPLETITLE: RC Circuit in Simulink and Simscape
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Two models of an RC circuit, one using Simulink® input/output blocks and one using Simscape™ physical networks.


COMPONENT: simscape
EXAMPLENAME: CascadedRCCircuitInSimulinkAndSimscapeExample
EXAMPLETITLE: Cascaded RC Circuit in Simulink and Simscape
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Two models of a cascaded RC circuit, one using Simulink® input/output blocks and one using Simscape™ physical networks.


COMPONENT: simscape
EXAMPLENAME: ShuntMotorExample
EXAMPLETITLE: Shunt Motor
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A model of a shunt motor. In a shunt motor, the field and armature windings are connected in parallel. Equivalent circuit parameters are armature resistance Ra = 110 Ohms, field resistance Rf = 2.46KOhms, and back emf coefficient Laf = 5.11. The back-emf is given by Laf*If*Ia*w, where If is the field current, Ia is the armature current, and w is the rotor speed in radians/s. The rotor inertia J is 2.2e-4kgm^2, and rotor damping B is 2.8e-6Nm/(radian/s).


COMPONENT: simscape
EXAMPLENAME: PermanentMagnetDCMotorExample
EXAMPLETITLE: Permanent Magnet DC Motor
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
This model is based on a Faulhaber Series 0615 DC-Micromotor. The parameters values are set to match the 1.5V variant of this motor. The model uses these parameters to verify manufacturer-quoted no-load speed, no-load current, and stall torque.


COMPONENT: simscape
EXAMPLENAME: LeadAcidBatteryExample
EXAMPLETITLE: Lead-Acid Battery
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a lead-acid battery cell using the Simscape™ language to implement the nonlinear equations of the equivalent circuit components. In this way, as opposed to modeling entirely in Simulink®, the connection between model components and the defining physical equations is more easily understood. For the defining equations and their validation, see Jackey, R. "A Simple, Effective Lead-Acid Battery Modeling Process for Electrical System Component Selection", SAE World Congress & Exhibition, April 2007, ref. 2007-01-0778.


COMPONENT: simscape
EXAMPLENAME: LithiumIonBatteryPackWithFaultExample
EXAMPLETITLE: Lithium-Ion Battery Pack with Fault
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Simulate a battery pack consisting of multiple series-connected cells in an efficient manner. It also shows how a fault can be introduced into one of the cells to see the impact on battery performance and cell temperatures. For efficiency, identical series-connected cells are not just simply modeled by connecting cell models in series. Instead a single cell is used, and the terminal voltage scaled up by the number of cells. The fault is represented by changing the parameters for the Cell 10 Fault subsystem, reducing both capacity and open-circuit voltage, and increasing the resistance values.


COMPONENT: simscape
EXAMPLENAME: LithiumIonBatteryPackWithFaultUsingArraysExample
EXAMPLETITLE: Lithium-Ion Battery Pack with Fault Using Arrays
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Simulate a battery pack that consists of multiple series-connected cells. It also shows how you can introduce a fault into one of the cells to see the impact on battery performance and cell temperatures. The battery pack is modeled in Simscape™ language by connecting cell models in series using arrays. You can represent the fault by defining different parameters for the faulty cell.


COMPONENT: simscape
EXAMPLENAME: LithiumBatteryCellOneRCBranchEquivalentCircuitExample
EXAMPLETITLE: Lithium Battery Cell - One RC-Branch Equivalent Circuit
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a lithium cell using the Simscape™ language to implement the elements of an equivalent circuit model with one RC branch. For the defining equations and their validation, see T. Huria, M. Ceraolo, J. Gazzarri, R. Jackey. "High Fidelity Electrical Model with Thermal Dependence for Characterization and Simulation of High Power Lithium Battery Cells," IEEE International Electric Vehicle Conference, March 2012.


COMPONENT: simscape
EXAMPLENAME: LithiumBatteryCellTwoRCBranchEquivalentCircuitExample
EXAMPLETITLE: Lithium Battery Cell - Two RC-Branch Equivalent Circuit
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a lithium cell using the Simscape™ language to implement the elements of an equivalent circuit model with two RC branches. For the defining equations and their validation, see T. Huria, M. Ceraolo, J. Gazzarri, R. Jackey. "High Fidelity Electrical Model with Thermal Dependence for Characterization and Simulation of High Power Lithium Battery Cells," IEEE International Electric Vehicle Conference, March 2012.


COMPONENT: simscape
EXAMPLENAME: LithiumPackThermalRunawayExample
EXAMPLETITLE: Lithium Pack Thermal Runaway
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a thermal runaway in a lithium-ion battery pack. The model measures the cell heat generation, the cell-to-cell heat cascade, and the subsequent temperature rise in the cells, based on the design. The cell thermal runaway abuse heat is calculated using calorimeter data. Simulation is run to evaluate the number of cells that go into runaway mode, when just one cell is abused. To delay or cancel the cell-to-cell thermal cascading, this example models a thermal barrier between the cells.


COMPONENT: simscape
EXAMPLENAME: NonlinearBipolarTransistorExample
EXAMPLETITLE: Nonlinear Bipolar Transistor
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
An implementation of a nonlinear bipolar transistor based on the Ebers-Moll equivalent circuit. R1 and R2 set the nominal operating point, and the small signal gain is approximately set by the ratio R3/R4. The 1uF decoupling capacitors have been chosen to present negligible impedance at 1KHz. The model is configured for linearization so that a frequency response can be generated.


COMPONENT: simscape
EXAMPLENAME: SmallSignalBipolarTransistorExample
EXAMPLETITLE: Small-Signal Bipolar Transistor
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
The use of a small-signal equivalent transistor model to assess performance of a common-emitter amplifier. The 47K resistor is the bias resistor required to set nominal operating point, and the 470 Ohm resistor is the load resistor. The transistor is represented by a hybrid-parameter equivalent circuit with circuit parameters h_ie (base circuit resistance), h_oe (output admittance), h_fe (forward current gain), and h_re (reverse voltage transfer ratio). Parameters set are typical for a BC107 Group B transistor. The gain is approximately given by -h_fe*470/h_ie =-47. The 1uF decoupling capacitor has been chosen to present negligible impedance at 1KHz compared to the input resistance h_ie, so the output voltage should be 47*10mV = 0.47V peak.


COMPONENT: simscape
EXAMPLENAME: BandLimitedOpAmpExample
EXAMPLETITLE: Band-Limited Op-Amp
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How higher fidelity or more detailed component models can be built from the Foundation library blocks. The model implements a band-limited op-amp. It includes a first-order dynamic from inputs to outputs, and gives much faster simulation than if using a device-level equivalent circuit, which would normally include multiple transistors. This model also includes the effects of input and output impedance (Rin and Rout in the circuit), but does not include nonlinear effects such as slew-rate limiting.


COMPONENT: simscape
EXAMPLENAME: FiniteGainOpAmpExample
EXAMPLETITLE: Finite-Gain Op-Amp
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How higher fidelity or more detailed component models can be built from the Foundation library blocks. The Op-Amp block in the Foundation library models the ideal case whereby the gain is infinite, input impedance infinite, and output impedance zero. The Finite Gain Op-Amp block in this example has an open-loop gain of 1e5, input resistance of 100K ohms and output resistance of 10 ohms. As a result, the gain for this amplifier circuit is slightly lower than the gain that can be analytically calculated if the op-amp gain is assumed to be infinite.


COMPONENT: simscape
EXAMPLENAME: OpAmpCircuitDifferentiatorExample
EXAMPLETITLE: Op-Amp Circuit - Differentiator
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A differentiator, such as might be used as part of a PID controller. It also illustrates how numerical simulation issues can arise in some idealized circuits. The model runs with the capacitor series parasitic resistance set to its default value of 1e-6 Ohms. Setting it to zero results in a warning and a very slow simulation. See the User's Guide for further information.


COMPONENT: simscape
EXAMPLENAME: OpAmpCircuitInvertingAmplifierExample
EXAMPLETITLE: Op-Amp Circuit - Inverting Amplifier
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A standard inverting op-amp circuit. The gain is given by -R2/R1, and with the values set to R1=1K Ohm and R2=10K Ohm, the 0.1V peak-to-peak input voltage is amplified to 1V peak-to-peak. As the Op-Amp block implements an ideal (i.e. infinite gain) device, this gain is achieved regardless of output load.


COMPONENT: simscape
EXAMPLENAME: OpAmpCircuitNoninvertingAmplifierExample
EXAMPLETITLE: Op-Amp Circuit - Noninverting Amplifier
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A noninverting op-amp circuit. The gain is given by 1+R2/R1, and with the values set to R1=1K Ohm and R2=10K Ohm, the 0.1V peak-to-peak input voltage is amplified to 1.1V peak-to-peak. As the Op-Amp block implements an ideal (i.e. infinite gain) device, this gain is achieved regardless of output load.


COMPONENT: simscape
EXAMPLENAME: NonlinearInductorExample
EXAMPLETITLE: Nonlinear Inductor
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
An implementation of a nonlinear inductor where the inductance depends on the current. For best numerical efficiency, the underlying behavior is defined in terms of a current-dependent flux. In order to differentiate the flux to get voltage, a magnetizing lag is included. Simulation results are relatively insensitive to this lag provided that it is at least an order of magnitude faster than the fastest frequency of interest. Parameters for the source and lag are defined in the MATLAB® workspace so that the expected voltage can be calculated analytically.


COMPONENT: simscape
EXAMPLENAME: FullWaveBridgeRectifierExample
EXAMPLETITLE: Full-Wave Bridge Rectifier
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
An ideal AC transformer plus full-wave bridge rectifier. It converts 120 volts AC to 12 volts DC. The transformer has a turns ratio of 14, stepping the supply down to 8.6 volts rms, i.e. 8.6*sqrt(2) = 12 volts pk-pk. The full-wave bridge rectifier plus capacitor combination then converts this to DC. The resistor represents a typical load.


COMPONENT: simscape
EXAMPLENAME: CircuitBreakerExample
EXAMPLETITLE: Circuit Breaker
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a circuit breaker. The electromechanical breaker mechanism is approximated with a first-order time constant, and it is assumed that the mechanical force is proportional to load current. This simple representation is suitable for use in a larger model of a complete system. When the 20V supply is applied at one second, it results in a current that exceeds the circuit breaker current rating, and hence the breaker trips. The reset is then pressed at three seconds, and the voltage is ramped up. The breaker then trips just beyond the circuit breaker current rating.


COMPONENT: simscape
EXAMPLENAME: CircuitBreakerWithProbeBlockExample
EXAMPLETITLE: Circuit Breaker with Probe Block
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a circuit breaker using a Simscape Probe block to access the current and voltage within the electrical switch block and another Simscape Probe block to access the voltage across a load.


COMPONENT: simscape
EXAMPLENAME: SolenoidExample
EXAMPLETITLE: Solenoid
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A solenoid with a spring return. The solenoid is modeled as an inductance whose value L depends on the plunger position x. The back emf for a time-varying inductance is given by:


COMPONENT: simscape
EXAMPLENAME: OperatingPointRLCTransientResponseExample
EXAMPLETITLE: Operating Point RLC Transient Response
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
The response of a DC power supply connected to a series RLC load. The goal is to plot the output voltage response when a load is suddenly attached to the fully powered-up supply. This is done using a Simscape operating point.


COMPONENT: simscape
EXAMPLENAME: SolenoidWithMagneticBlocksExample
EXAMPLETITLE: Solenoid with Magnetic Blocks
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a solenoid with spring return. When unpowered, the spring pulls the plunger +5mm away from the center of the coil. Turning on the power supply at t=0.1 seconds pulls the plunger into the center of the coil. At t=0.3s, a 10N external load is added to the plunger.


COMPONENT: simscape
EXAMPLENAME: ElectricalTransformerExample
EXAMPLETITLE: Electrical Transformer
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a transformer using fundamental magnetic library blocks. The transformer is rated 50W, 60 Hz, 120V/12V and assumed to have an efficiency of 94%, no-load magnetizing current of 1% and a leakage reactance of 2.3%. Core losses are not modeled and the core material B-H characteristic is assumed to be linear.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorWithAnalogControlHExample
EXAMPLETITLE: Hydraulic Actuator with Analog Position Controller
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the Foundation library can be used to model systems that span electrical, mechanical and hydraulic domains. In the model, a hydraulic system controls mechanical load position in response to a voltage reference demand. If the reference demand is zero, then the hydraulic actuator (and load) displacement is zero, and if the reference is +5 volts, then the displacement is 100mm.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorWithDigitalPositionControllerHExample
EXAMPLETITLE: Hydraulic Actuator with Digital Position Controller
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A two-way valve acting in a closed-loop circuit together with a double-acting cylinder. The controller is represented as a continuous-time transfer function plus a transport delay. The delay allows for the computational time (one discrete time period) plus the zero-order hold (half a discrete time period) when implemented in discrete time. The model is configured for linearization so that a frequency response can be generated. To configure for faster desktop simulation, comment through the transport delay and increase the solver maximum step size.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorConfiguredForHILTestingHExample
EXAMPLETITLE: Hydraulic Actuator Configured for HIL Testing
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A physical system model and controller configured for HIL testing. It is derived from example Hydraulic Actuator with Digital Position Controller, HydraulicActuatorWithDigitalPositionControllerHExample. The model has been configured for HIL testing by performing the following steps:


COMPONENT: simscape
EXAMPLENAME: CavitationCycleExample
EXAMPLETITLE: Cavitation Cycle
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the fluid in a custom double acting cylinder can cavitate and recover. During the repeating cycle of oscillating pressure, the absolute pressure does not get below absolute zero as the bulk modulus of the homogeneous liquid-gas mixture decreases accordingly at low pressures.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorWithAnalogControlExample
EXAMPLETITLE: Hydraulic Actuator with Analog Position Controller
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the Foundation library can be used to model systems that span electrical, mechanical and isothermal liquid domains. In the model, a hydraulic system implemented in the isothermal liquid domain controls the mechanical load position in response to a voltage reference demand. If the reference demand is zero, then the hydraulic actuator (and load) displacement is zero, and if the reference is +5 volts, then the displacement is 100 mm.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorWithAnalogControlWithDashboardExample
EXAMPLETITLE: Hydraulic Actuator with Analog Position Controller and Dashboard Blocks
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Use the Foundation library to model systems that span electrical, mechanical and isothermal liquid domains.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorWithDigitalPositionControllerExample
EXAMPLETITLE: Hydraulic Actuator with Digital Position Controller
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A two-way valve acting in a closed-loop circuit together with a double-acting cylinder implemented in the isothermal liquid domain. The controller is represented as a continuous-time transfer function plus a transport delay. The delay allows for the computational time (one discrete time period) plus the zero-order hold (half a discrete time period) when implemented in discrete time. The model is configured for linearization so that a frequency response can be generated. To configure for faster desktop simulation, comment through the transport delay and increase the solver maximum step size.


COMPONENT: simscape
EXAMPLENAME: HydraulicActuatorConfiguredForHILTestingExample
EXAMPLETITLE: Hydraulic Actuator Configured for HIL Testing
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A physical system model and controller configured for HIL testing. It is derived from example Hydraulic Actuator with Digital Position Controller, ssc_isothermal_liquid_actuator_digital_control. The model has been configured for HIL testing by performing the following steps:


COMPONENT: simscape
EXAMPLENAME: EntrainedAirEffectsExample
EXAMPLETITLE: Entrained Air Effects
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
The effects of entrained air in a custom double acting cylinder. During the repeating cycle of oscillating pressure, the absolute pressure does not get below absolute zero as the bulk modulus of the homogeneous liquid-gas mixture decreases accordingly at low pressures.


COMPONENT: simscape
EXAMPLENAME: HydraulicFluidWarmingDueToLossesExample
EXAMPLETITLE: Hydraulic Fluid Warming Due to Losses
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model shows how Foundation Library thermal liquid components can be used to estimate the impact of viscous losses on an actuating system's temperature over a long time scale. A pump supplies energy to the system to actuate a double-acting cylinder periodically. The pressure losses within directional valve converts the energy into heat. Heat transfer through the cylinder casing to the environment provides a heat sink.


COMPONENT: simscape
EXAMPLENAME: OptimalPipelineGeometryForHeatedOilTransportationExample
EXAMPLETITLE: Optimal Pipeline Geometry for Heated Oil Transportation
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model shows the opposing effects of viscous warming and conductive cooling on the temperature of a buried pipeline segment for heated oil transportation. A requirement for these systems is for the crude oil to stay well above the pour point to provide a continuous steady flow. The system is modeled using the Thermal Liquid Foundation Library. Crude oil thermodynamic properties are stored in workspace matrices and are used to populate the Thermal Liquid Settings block mask parameters.


COMPONENT: simscape
EXAMPLENAME: WaterHammerEffectExample
EXAMPLETITLE: Water Hammer Effect
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model shows how the Thermal Liquid foundation library can be used to model water hammer in a long pipe. After slowly establishing a steady flow within the pipe by opening a valve accordingly, the same valve is shut within a few milliseconds. This triggers a water hammer effect. The valve is modeled using a Variable Local Restriction (TL) block and the pipe is divided into four segments using the Pipe (TL) block. Breaking the pipe into more segments increases fidelity at the expense of simulation performance.


COMPONENT: simscape
EXAMPLENAME: EngineCoolingSystemExample
EXAMPLETITLE: Engine Cooling System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a basic engine cooling system using custom thermal liquid blocks. A fixed-displacement pump drives water through the cooling circuit. Heat from the engine is absorbed by the water coolant and dissipated through the radiator. The system temperature is regulated by the thermostat, which diverts flow to the radiator only when the temperature is above a threshold.


COMPONENT: simscape
EXAMPLENAME: PneumaticActuationCircuitExample
EXAMPLETITLE: Pneumatic Actuation Circuit
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the Foundation Library gas components can be used to model a controlled pneumatic actuator. The Directional Valve is a masked subsystem created from Variable Local Restriction (G) blocks to model the opening and closing of the flow paths. The Double-Acting Actuator is a masked subsystem created from Translational Mechanical Converter (G) blocks to model the interface between the gas network and the mechanical translational network.


COMPONENT: simscape
EXAMPLENAME: PneumaticMotorCircuitExample
EXAMPLETITLE: Pneumatic Motor Circuit
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How a pneumatic vane motor can be modeled using the Simscape™ language. The Pneumatic Motor component is built using the Simscape Foundation gas domain. It inherits from the foundation.gas.two_port_steady base class, which contains common equations that implement the upwind energy flow rate and the gas properties at the ports. The Pneumatic Motor subclass implements equations that describe behaviors specific to the component, such as the motor torque and flow rate characteristics and the mass and energy balance. The Pneumatic Motor block is inserted into the model using the Simscape Component block without the need to generate a separate library.


COMPONENT: simscape
EXAMPLENAME: ChokedFlowInGasOrificeExample
EXAMPLETITLE: Choked Flow in Gas Orifice
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
The choking behavior of a gas orifice modeled by the Local Restriction (G) block. The Controlled Reservoir (G) blocks are used to set up controlled pressure and temperature boundary conditions from the Reservoir Inputs subsystem to test the gas orifice.


COMPONENT: simscape
EXAMPLENAME: BraytonCycleGasTurbineWithCustomComponentsExample
EXAMPLETITLE: Brayton Cycle (Gas Turbine) with Custom Components
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a gas turbine auxiliary power unit (APU) based on the Brayton Cycle. The Compressor and Turbine blocks are custom components based on the Simscape™ Foundation Gas Library. The power input to the system is represented by heat injection into the combustor; actual combustion chemistry is not modeled. A single shaft connects the compressor and the turbine so that the power from the turbine drives the compressor. The APU is a free turbine that further expands the exhaust stream to produce output power.


COMPONENT: simscape
EXAMPLENAME: BuildingVentilationExample
EXAMPLETITLE: Building Ventilation
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a ventilation circuit in a building. The air volume inside the building is divided into four zones. The ventilation unit blows cool air into Zone 1 and extracts air from Zone 3. The extracted air can be optionally recycled back into Zone 1. A door in Zone 4 can be opened to vent air out to the atmosphere.


COMPONENT: simscape
EXAMPLENAME: CompressorMapWithScatteredLookupExample
EXAMPLETITLE: Compressor Map with Scattered Lookup
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Gas flow through a compressor which is modeled using a simple controlled mass flow rate source. The compressor map that governs this mass flow rate is modeled using the PS Scattered Lookup (2D) block whose data coordinates are the pressure ratio (Pa/Pa) and the engine RPM, and the output is the mass flow rate (kg/s). The scattered lookup block performs delaunay triangulation on the input data (which is shown in plots below), and uses this to interpolate and calculate the mass flow rate based on the input. Scattered lookup allows modeling of the compressor even if the data provided is in an unstructured format.


COMPONENT: simscape
EXAMPLENAME: VehicleHVACSystemExample
EXAMPLETITLE: Vehicle HVAC System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models moist air flow in a vehicle heating, ventilation, and air conditioning (HVAC) system. The vehicle cabin is represented as a volume of moist air exchanging heat with the external environment. The moist air flows through a recirculation flap, a blower, an evaporator, a blend door, and a heater before returning to the cabin. The recirculation flap selects flow intake from the cabin or from the external environment. The blender door diverts flow around the heater to control the temperature.


COMPONENT: simscape
EXAMPLENAME: AircraftEnvironmentalControlSystemExample
EXAMPLETITLE: Aircraft Environmental Control System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models an aircraft environmental control system (ECS) that regulates pressure, temperature, humidity, and ozone (O3) to maintain a comfortable and safe cabin environment. Cooling and dehumidification are provided by the air cycle machine (ACM), which operates as an inverse Brayton cycle to remove heat from pressurized hot engine bleed air. Some hot bleed air is mixed directly with the output of the ACM to adjust the temperature. Pressurization is maintained by the outflow valve in the cabin. This model simulates the ECS operating from a hot ground condition to a cold cruise condition and back to a cold ground condition.


COMPONENT: simscape
EXAMPLENAME: PEMFuelCellSystemExample
EXAMPLETITLE: PEM Fuel Cell System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a proton exchange membrane (PEM) fuel cell stack with a custom Simscape™ block. The PEM fuel cell generates electrical power by consuming hydrogen and oxygen and producing water vapor. The custom block represents the membrane electrode assembly (MEA) and is connected two separate moist air networks: one for the anode gas flow and one for the cathode gas flow.


COMPONENT: simscape
EXAMPLENAME: PEMElectrolysisSystemExample
EXAMPLETITLE: PEM Electrolysis System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a proton exchange membrane (PEM) water electrolyzer with a custom Simscape™ block. The PEM electrolyzer consumes electrical power to split water into hydrogen and oxygen. The custom block represents the membrane electrode assembly (MEA) and is connected to a thermal liquid network and two separate moist air networks: the thermal liquid network models the water supply, the anode moist air network models the oxygen flow, and the cathode moist air network models the hydrogen flow.


COMPONENT: simscape
EXAMPLENAME: MedicalVentilatorWithLungModelExample
EXAMPLETITLE: Medical Ventilator with Lung Model
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a positive-pressure medical ventilator system. A preset flow rate is supplied to the patient. The lungs are modeled with the Translational Mechanical Converter (MA), which converts moist air pressure into translational motion. By setting the Interface cross-sectional area to unity, displacement in the mechanical translational network becomes a proxy for volume, force becomes a proxy for pressure, spring constant becomes a proxy for respiratory elastance, and damping coefficient becomes a proxy for respiratory resistance.


COMPONENT: simscape
EXAMPLENAME: OxygenConcentratorExample
EXAMPLETITLE: Oxygen Concentrator
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models an oxygen concentrator device coupled to a lung model. One of the two sieves filters out nitrogen from the air to produce concentrated oxygen in the product tank. The two sieves switches periodically so that while one sieve is filtering, the other can purge the adsorbed nitrogen. When the lung model inhales, some of the oxygen-rich gas from the product tank is mixed into the inspiratory flow.


COMPONENT: simscape
EXAMPLENAME: PneumaticActuatorWithHumidityExample
EXAMPLETITLE: Pneumatic Actuator with Humidity
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the Simscape™ Foundation Library moist air components can be used to model a pneumatic actuator operating in a humid environment. The Directional Valve is a subsystem composed of four Variable Local Restriction (MA) blocks, and the Double-Acting Actuator is a subsystem composed of two Translational Mechanical Converter (MA) blocks in opposite mechanical orientation.


COMPONENT: simscape
EXAMPLENAME: CavitationInTwoPhaseFluidExample
EXAMPLETITLE: Cavitation in Two-Phase Fluid
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How two-phase fluid components can be used to simulate cavitation. The model is a translational mechanical converter driven by an oscillating pressure source. During the negative portion of the pressure source cycle, the fluid cavitates, reducing the force produced by the converter. As a result, the converter displacement drifts and does not return to the starting position.


COMPONENT: simscape
EXAMPLENAME: FluidVaporizationInPipeExample
EXAMPLETITLE: Fluid Vaporization in Pipe
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model the vaporization of water to generate steam. Liquid water enters the pipe at 370 K at a rate of 1 kg/s. The pipe is heated to 1000 K, causing the water flowing inside pipe to saturate.


COMPONENT: simscape
EXAMPLENAME: TwoPhaseFluidRefrigerationExample
EXAMPLETITLE: Two-Phase Fluid Refrigeration
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a vapor-compression refrigeration cycle using two-phase fluid components. The compressor drives the R-134a refrigerant through a condenser, an expansion valve, and an evaporator. The hot gas leaving the compressor condenses in the condenser via heat transfer to the environment. The pressure drops as the refrigerant passes through the expansion valve. The drop in pressure lowers the saturation temperature of the refrigerant. This enables it to boil in the evaporator as it absorbs heat from the refrigerator compartment. The refrigerant then returns to the compressor to repeat the cycle. The controller turns the compressor on and off to maintain the refrigerator compartment temperature within a band around the desired temperature.


COMPONENT: simscape
EXAMPLENAME: RankineCycleSteamTurbineExample
EXAMPLETITLE: Rankine Cycle (Steam Turbine)
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a steam turbine system based on the Rankine Cycle. The cycle includes superheating and reheating to prevent condensation at the high-pressure turbine and the low-pressure turbine, respectively. The cycle also has regeneration by passing extracted steam through closed feedwater heaters to warm up the water and improve cycle efficiency.


COMPONENT: simscape
EXAMPLENAME: TranscriticalRefrigerationCycleExample
EXAMPLETITLE: Transcritical CO2 (R744) Refrigeration Cycle
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a vapor-compression refrigeration cycle in which the high pressure portion of the cycle operates in the supercritical fluid region. The refrigerant is carbon dioxide (CO2), also called R744 in this application.


COMPONENT: simscape
EXAMPLENAME: HouseHeatingSystemExample
EXAMPLETITLE: House Heating System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a simple house heating system. The model contains a heater, thermostat, and a house structure with four parts: inside air, house walls, windows, and roof.


COMPONENT: simscape
EXAMPLENAME: MotorThermalCircuitExample
EXAMPLETITLE: Motor Thermal Circuit
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the thermal behavior of a brushless servomotor can be simulated using a lumped parameter model. Heat generated due to power losses in the stator iron stack, stator winding and rotor is represented by three heat flow sources: stator iron losses (Q_Iron), winding power losses (Q_Wind), and magnetizing and eddy current rotor losses (Q_Rotor). The losses were recorded during a motor typical cycle simulation and stored in the motor_losses.mat file. The motor thermal circuit is built of thermal conductances, thermal masses, and convective heat transfer blocks, which reproduce heat paths in the motor parts: winding, stator iron, motor case, rotor, front and rear bearing plates, and motor mounting flange. The motor exchanges heat with the atmosphere through the case-atmosphere, flange-atmosphere, and rear plate-atmosphere contacts. The ambient conditions are simulated with the ideal temperature source set to 300 K.


COMPONENT: simscape
EXAMPLENAME: HeatConductionThroughIronRodExample
EXAMPLETITLE: Heat Conduction Through Iron Rod
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How thermal blocks can model a long iron rod that is fixed to a hot base at one end and exposed to air along its length and at its free end. The rod is an extended surface that undergoes conduction along its length and convection with air in the direction perpendicular to its length. Extended surfaces are often used as fins to cool a solid.


COMPONENT: simscape
EXAMPLENAME: UltracapacitorEnergyStorageWithCustomComponentExample
EXAMPLETITLE: Ultracapacitor Energy Storage with Custom Component
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Use the Simscape™ example library Capacitors_lib. The model is constructed using components from the example library. The circuit charges an ultracapacitor from a constant 0.05 amp current source, and then delivers a pulse of current to a load. The ultracapacitor enables a much higher current to be delivered than is possible directly from the current source. The library contains capacitor models with different levels of fidelity to allow exploration of the effect of losses and nonlinearity.


COMPONENT: simscape
EXAMPLENAME: TransmissionLineExample
EXAMPLETITLE: Transmission Line
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A lumped parameter transmission line model. It is built from a custom Simscape™ component that defines a single T-section segment. The model concatenates 50 segments, each of length 0.1m, thereby modeling a 5m length of coaxial cable. The transmission delay can be observed from the simulation results.


COMPONENT: simscape
EXAMPLENAME: BatteryCellWithCustomElectrochemicalDomainExample
EXAMPLETITLE: Battery Cell with Custom Electrochemical Domain
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Use the Simscape™ example library ElectroChem_lib. In the model Fe3+ ions are reduced to Fe2+, and Pb is oxidized to Pb2+, thereby releasing chemical energy. The molar flow rate of lead ions is half that of the iron ions as two electrons are exchanged when Pb is oxidized to Pb2+. The chemical potential of the Pb source is by convention zero as it is a solid.


COMPONENT: simscape
EXAMPLENAME: VariableTransportDelayExample
EXAMPLETITLE: Variable Transport Delay
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Use Simscape™ to model a variable transport delay. The Transport Delay block models signal propagation through media moving between the Input and the Output terminals. The media velocity may vary, thus it is specified through the block port. The distance between the terminals as well as the initial output are constant and they are specified as block parameters.


COMPONENT: simscape
EXAMPLENAME: AsynchronousPWMVoltageSourceExample
EXAMPLETITLE: Asynchronous PWM Voltage Source
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the Simscape™ Foundation Library PS Asynchronous Sample & Hold block can be used to build components with more complex behaviors. The model implements a controllable PWM voltage source where the PWM on-time (the duty cycle) is proportional to the physical signal input u.


COMPONENT: simscape
EXAMPLENAME: DiscreteTimePWMVoltageSourceExample
EXAMPLETITLE: Discrete-Time PWM Voltage Source
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
How the discrete-time Simscape™ Foundation Library PS Counter block can be used to build components with more complex behaviors. The model implements a controllable PWM voltage source where the PWM on-time (the duty cycle) is proportional to the physical signal input u.


COMPONENT: simscape
EXAMPLENAME: ActuationCircuitWithCustomPneumaticComponentsExample
EXAMPLETITLE: Actuation Circuit with Custom Pneumatic Components
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Model a controlled actuator using simplified custom pneumatic components. There are two across variables, defined as pressure and temperature, and two through variables, defined as mass flow rate and heat flow rate. The simplified approach means that every node in the circuit must have a volume of gas associated with it. This physical volume of gas in the circuit is represented by the Constant Volume Pneumatic Chamber blocks, the Pneumatic Piston Chamber blocks, and the Pneumatic Atmospheric Reference block. Conversely, the Foundation Library gas components require no such connection rules at every node. See the Pneumatic Actuation Circuit example for a more capable way of modeling pneumatic systems using Foundation Library gas components.


COMPONENT: simscape
EXAMPLENAME: SimscapeFunctionsExample
EXAMPLETITLE: Simscape Functions
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Write Simscape™ functions to compute numerical values with Simscape expressions and how to use Simscape functions to improve code reuse across components. The top two Simscape component blocks ( inside the "Use no Simscape functions" box ) are respectively created using two Simscape component files. Comparing these two component files, similar Simscape expressions can be observed on the right hand side of the equation to compute numerical values, which is essentially a modification of exp(i) to provide protection for large magnitude of i. Such expressions are common in standard diode modeling. Using Simscape functions, such expressions are abstracted out into a Simscape function file, and their usages inside the component files are replaced by calls to such Simscape functions. The bottom two Simscape component blocks ( inside the "Use Simscape functions" box ) are created using component files using Simscape functions.


COMPONENT: simscape
EXAMPLENAME: MassOnCartUsingAnIdealHardStopExample
EXAMPLETITLE: Mass on Cart Using an Ideal Hard Stop
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A cart bouncing between the two ends of an ideal hard stop, while a mass slides freely on top of it. The friction between the mass and cart is modeled using an ideal, modechart-based friction block, while the hard stop is modeled using instantaneous modes and entry actions. When the cart hits the bounds of the hard stop, the impulsive force is propagated to the mass above, causing it to be displaced as it transitions from static to dynamic friction modes.


COMPONENT: simscape
EXAMPLENAME: RopePullUsingACustomDomainEquationExample
EXAMPLETITLE: Rope Pull Using a Custom Domain Equation
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
A force pulling on the end of a rope that has a large load on its other end. The rope is modeled with distributed mass and elasticity using mass, spring, and damper blocks. When the force increases from 0 N to 1,000 N, it excites longitudinal vibrations in the rope.


COMPONENT: simscape
EXAMPLENAME: VariantLeafRegionInMechanicalSystemExample
EXAMPLETITLE: Variant Leaf Region in Mechanical System
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Simulate the displacement of velocity sources and mass by using the leaf type of the Variant Connector block. The leaf Variant Connector block forms a leaf region that allows you to vary the displacement during simulation.


COMPONENT: simscape
EXAMPLENAME: VariantBoundedRegionInElectricalCircuitExample
EXAMPLETITLE: Variant Bounded Region in Electrical Circuit
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Activate or deactivate the flow of a current to a set of components in an electrical circuit by using the primary and nonprimary type Variant Connector blocks. The primary and nonprimary Variant Connector blocks form a bounded region that allows you to vary the electrical circuit during simulation.


COMPONENT: simscape
EXAMPLENAME: NonlinearElectromechanicalCircuitWithPartitioningSolverExample
EXAMPLETITLE: Nonlinear Electromechanical Circuit with Partitioning Solver
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
Models a DC Motor controlled by a ramp input. The resulting system of equations contains switched linear and nonlinear elements brought about by the Diode and Rotational Friction blocks respectively. However, the Partitioning solver is able to convert this system into several smaller sets of linear time-invariant and switched linear equations connected by nonlinear functions. This helps in reducing computational cost, which in turn yields faster simulation.


COMPONENT: simscape
EXAMPLENAME: ConfiguringAnEVSimulationForMultirateHILExample
EXAMPLETITLE: Configuring an EV Simulation for Multirate HIL
PRODUCT: MATLAB;Simscape;Simulink
DESCRIPTION:
An electric vehicle model suitable for multirate Hardware-In-the-Loop (HIL) deployment. The example uses the Simscape™ Network Couplers Library to split the model into separate Simulink® subsystems that can be deployed at different sample rates. This allows you to run parts of the system (for example thermal components) with a slower sample time thereby reducing overall computational cost.


COMPONENT: simscape
EXAMPLENAME: OscillationSensorExample
EXAMPLETITLE: Model Oscillation Sensor Using Permanent Magnet Block
PRODUCT: MATLAB;Simscape
DESCRIPTION:
Model an oscillation sensor using the Permanent Magnet block. The sensor consists of a magnetic core with a permanent magnet that generates a magnetic field, a ferromagnetic plate attached to the core, and a conducting winding around the core.


COMPONENT: simscape
EXAMPLENAME: OperatingPointForVanDerPolOscillatorExample
EXAMPLETITLE: Operating Point for Van der Pol Oscillator
PRODUCT: MATLAB;Simscape
DESCRIPTION:
Advantage of initialization with a Simscape operating point (OP) for a Van der Pol oscillator. OP initialization enables pushing the Van der Pol oscillator directly into its periodic steady state.


COMPONENT: simscape
EXAMPLENAME: ConfiguringGravityFrictionExample
EXAMPLETITLE: Gravity and Friction in the Position-Based Translational Domain
PRODUCT: MATLAB;Simscape
DESCRIPTION:
Configure gravity and gravity-induced friction effects in a position-based translational mechanical network.


COMPONENT: simscape
EXAMPLENAME: InterpretingForceFlowExample
EXAMPLETITLE: Force Flow in the Position-Based Translational Domain
PRODUCT: MATLAB;Simscape
DESCRIPTION:
Describes how to interpret force flowing through a Simscape™position-based mechanical translational network. The example summarizes rules for interpreting the signs of logged forces and then considers forces in three types of systems: springs being pulled or pushed from different ends, simple systems with external forces applied at a mid-point, and a more complex system with an external force applied at the mid-point.


COMPONENT: simscape
EXAMPLENAME: FannoFlowGasPipeValidationExample
EXAMPLETITLE: Fanno Flow Gas Pipe Validation
PRODUCT: MATLAB;Simscape
DESCRIPTION:
The Fanno flow model is an analytical solution of an adiabatic (perfectly insulated) compressible perfect gas flow through a constant area pipe with friction. This example shows a comparison and validation of the Simscape™ Pipe (G) block against the Fanno flow model. While you typically need empirical data to validate a block over a range of scenarios, it may still be useful to perform limited validation against analytical models for specific scenarios. This is because the theory and derivation behind the analytical model may provide more insight into where the block works well and how to address limitations. The comparison shows that, for short to moderate pipe lengths, the Simscape pipe model agrees well with the Fanno flow model. For long pipe lengths, a segmented pipe model agrees well with the Fanno flow model.


COMPONENT: simscape
EXAMPLENAME: PermanentMagnetOnWallExample
EXAMPLETITLE: Permanent Magnet Attached to Iron Wall
PRODUCT: MATLAB;Simscape
DESCRIPTION:
Model the forces acting on a magnet that is attached to an iron wall. You can define the interaction between the magnetic and translational motion domains using a Permanent Magnet block and a Reluctance Force Actuator block.


COMPONENT: simscape_shared
EXAMPLENAME: ElectroHydraulicLimitedSlipDifferentialExample
EXAMPLETITLE: Electro-Hydraulic Limited Slip Differential
PRODUCT: MATLAB;Simscape Fluids;Simulink;Simscape
DESCRIPTION:
A simple way of modeling an electro-hydraulic limited slip differential system. The model shows the velocity and the torque profile responses achieved for the left and the right wheels.


COMPONENT: simscape_shared
EXAMPLENAME: WashingMachineFaultAnalysisExample
EXAMPLETITLE: Washing Machine Fault Analysis
PRODUCT: MATLAB;Simscape;Simulink;Simscape Electrical;Simscape Fluids
DESCRIPTION:
Model a washing machine and introduce a fault in its operation. The machine water supply faults at a specific time and this example models the system response under this scenario. The electric motor switches off and the machine operation is aborted by discharging the partially filled outer drum.


COMPONENT: simscape_shared
EXAMPLENAME: CraneBoomArmTestBenchExample
EXAMPLETITLE: Crane Boom Arm Test Bench
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids;Simscape Multibody
DESCRIPTION:
Combine hydraulics modeling in Simscape™ Fluids™ with six-degree-of-freedom motion and animation in Simscape Multibody™. This example also shows how to parameterize, test, and compare design cases for a counterbalance valve in a crane boom arm test bench. A counterbalance valve allows an upstream flow from the back port to the load port through the check valve stage during cylinder rod extension, and it allows a downstream flow from the load port to the back port through the relief valve stage during cylinder rod retraction in the boom arm mechanism. A counterbalance valve help with the load holding, load actuation, speed control, and safety by controlling the piston motion of the boom cylinder.


COMPONENT: simscape_shared
EXAMPLENAME: AntiLockBrakingSystemABSExample
EXAMPLETITLE: Anti-Lock Braking System (ABS)
PRODUCT: MATLAB;Simscape Fluids;Simulink;Simscape;Stateflow
DESCRIPTION:
A simple way of modeling an ABS braking system. The model shows the velocity profile responses achieved for the vehicle CG and the wheels.


COMPONENT: simscape_shared
EXAMPLENAME: WindTurbineExample
EXAMPLETITLE: Wind Turbine
PRODUCT: MATLAB;Simscape;Simscape Electrical;Simulink;Stateflow
DESCRIPTION:
Model, parameterize, and test a wind turbine with a supervisory, pitch angle, MPPT (maximum power point tracking), and derating control. When you run the plot function, it generates a plot of the state transitions, normalized physical quantities such as the wind speed, wind turbine rotation speed, generator power, and pitch angle.


COMPONENT: simscape_shared
EXAMPLENAME: AnalyzeBatterySpatialTemperatureDuringFastChargeExample
EXAMPLETITLE: Analyze Battery Spatial Temperature Variation During Fast Charge
PRODUCT: MATLAB;Simulink;Simscape;Simscape Battery;Simscape Electrical;Partial Differential Equation Toolbox
DESCRIPTION:
How the temperature gradient over the cell surface varies during the fast charging of a battery. Fast charging is one of the key enablers for the adoption of battery electric vehicles. Fast charging pushes a considerable amount of current inside the battery. This process produces a lot of heat. It is important to understand how temperatures spatially vary in a battery and how this affects its long term warranty. Typically, to ensure a good battery life with uniform degradation, the temperature gradient over the cell surface should not exceed around five or six degrees centigrade. This example uses Simscape™ Battery™ to model the cell electrical dynamics and the PDE Toolbox™ to generate the reduced order model (ROM) that describes the battery 3-D thermal model. This example uses a 50Ahr battery (Valence:U27_36XP) and charges it for 10 minutes from an initial state of charge (SOC) of 15%. Then, the example analyzes the maximum gradient in the cell temperature.


COMPONENT: simscape_shared
EXAMPLENAME: CylinderLinearizationExample
EXAMPLETITLE: Cylinder Linearization
PRODUCT:
MATLAB;Simscape;Simscape Fluids;Simulink;Control System Toolbox;Simulink Control Design;System Identification Toolbox

DESCRIPTION:
Linearize a Simscape™ hydro-mechanical system model to check stability of an open-loop system around an operating point. This example uses the Simulink Control Design™ Frequency Response Estimator block to perform a frequency response estimation experiment and store the data for later estimation offline.


COMPONENT: simscape_shared
EXAMPLENAME: HydraulicClutchSystemExample
EXAMPLETITLE: Hydraulic Clutch System
PRODUCT: MATLAB;Simscape;Simscape Fluids;Simulink
DESCRIPTION:
Model, parameterize, and test a hydraulic clutch system. The model is used to generate the plot of the engine and the transmission system speeds during a declutching and clutch re-engaging scenario.


COMPONENT: simscape_shared
EXAMPLENAME: OptimizeInverterLiquidCoolingSystemExample
EXAMPLETITLE: Optimize an Inverter Liquid Cooling System
PRODUCT: MATLAB;Simulink;Simscape Electrical;Simscape Fluids
DESCRIPTION:
In this example you analyze the performance of a liquid cooling system for a three-phase inverter. You run detailed and reduced models (ROM) to find the steady-state temperatures and losses. You compute the optimal size of the heatsink that maximizes the inverter efficiency and minimizes lifetime cost.


COMPONENT: simscape_shared
EXAMPLENAME: SimpleMotorArmatureWindingFaultExample
EXAMPLETITLE: Simple Motor Armature Winding Fault
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A DC Motor block that supports faults. The DC motor reaches a steady state speed that is close to the value of the Rated speed (at rated load) parameter within a couple of seconds. If you create a fault and inject it after the motor reaches steady-state, the motor speed changes to a new, slower steady-state speed. If you inject the fault during the motor transient response, the behavior depends on the motor speed.


COMPONENT: simscape_shared
EXAMPLENAME: TractorEnergyChartingExample
EXAMPLETITLE: Tractor Transmission Energy Flow Chart
PRODUCT: MATLAB;Simscape;Simscape Fluids;Simulink
DESCRIPTION:
Model, parameterize, and test a tractor with a hydrostatic continuously variable transmission (CVT). When you run one of the plot functions, you can view plots of the tractor velocity, engine speed, transmission speed, and pump and motor energy computations.


COMPONENT: simscape_shared
EXAMPLENAME: HybridSolarPanelExample
EXAMPLETITLE: Photovoltaic Thermal (PV/T) Hybrid Solar Panel
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical;Simscape Fluids
DESCRIPTION:
Model the cogeneration of electrical power and heat using a hybrid PV/T solar panel. The generated heat is transferred to water for household consumption.


COMPONENT: simscape_shared
EXAMPLENAME: PeakShavingWithBESSExample
EXAMPLETITLE: Peak Shaving with Battery Energy Storage System
PRODUCT: MATLAB;Simscape Battery;Stateflow;Simscape Electrical;Simulink;Simscape
DESCRIPTION:
Model a battery energy storage system (BESS) controller and a battery management system (BMS) with all the necessary functions for the peak shaving. The peak shaving and BESS operation follow the IEEE Std 1547-2018 and IEEE 2030.2.1-2019 standards.


COMPONENT: simscapebattery
EXAMPLENAME: BatterySOCEstimationExample
EXAMPLETITLE: Battery State-of-Charge Estimation
PRODUCT: MATLAB;Simscape Battery;Simulink
DESCRIPTION:
Estimate the battery state-of-charge (SOC) by using a Kalman filter. The initial SOC of the battery is equal to 0.5. The estimator uses an initial condition for the SOC equal to 0.8. The battery keeps charging and discharging for 6 hours. The extended Kalman filter estimator converges to the real value of the SOC in less than 10 minutes and then follows the real SOC value. To use a different Kalman filter implementation, in the SOC Estimator (Kalman Filter) block, set the Filter type parameter to the desired value.


COMPONENT: simscapebattery
EXAMPLENAME: BatteryCCCVExample
EXAMPLETITLE: Battery Charging and Discharging
PRODUCT: MATLAB;Simscape Battery;Simulink
DESCRIPTION:
Use a constant current and constant voltage algorithm to charge and discharge a battery. The Battery CC-CV block is charging and discharging the battery for 10 hours. The initial state of charge (SOC) is equal to 0.3. When the battery is charging, the current is constant until the battery reaches the maximum voltage and the current decreases to 0. When the battery is discharging, the model uses a constant current.


COMPONENT: simscapebattery
EXAMPLENAME: ThermalAnalysisNewAndAgedBatteryExample
EXAMPLETITLE: Thermal Analysis for New and Aged Battery Packs
PRODUCT: MATLAB;Simulink;Simscape;Simscape Battery
DESCRIPTION:
Evaluate a new and end-of-life (EOL) lithium-ion battery pack. With cell usage and time, the capacity of the cell degrades and the resistance increases due to the formation of a solid-electrolyte-interface (SEI), a passivation layer over the anode surface. You must design battery pack components to meet warranty criteria at EOL time from power, performance, and packaging perspectives. This example analyzes a 400V battery pack for EOL thermal performance based on its packaging.


COMPONENT: simscapebattery
EXAMPLENAME: BatteryMonitoringExample
EXAMPLETITLE: Battery Monitoring
PRODUCT: MATLAB;Simscape Battery;Simulink
DESCRIPTION:
Use battery management system blocks to monitor the current and temperature of a battery. A random current and temperature profile is applied to the battery which is then simulated for 6 hours.


COMPONENT: simscapebattery
EXAMPLENAME: BatterySOHEstimationExample
EXAMPLETITLE: Battery State-of-Health Estimation
PRODUCT: MATLAB;Simscape Battery;Simulink
DESCRIPTION:
Estimate the battery internal resistance and state-of-health (SOH) by using an adaptive Kalman filter. The initial state-of-charge (SOC) of the battery is equal to 0.6. The estimator uses an initial condition for the SOC equal to 0.65. The battery keeps charging and discharging for 10 hours. The unscented Kalman filter estimator converges to the real value of the SOC while also estimating the internal resistance. To use a different Kalman filter implementation, in the SOC Estimator (Kalman Filter) block, set the Filter type parameter to the desired value.


COMPONENT: simscapebattery
EXAMPLENAME: ApplyParameterVariationToCellsInModuleExample
EXAMPLETITLE: Apply Parameter Variation to Cells in Module
PRODUCT: MATLAB;Simulink;Simscape;Simscape Battery
DESCRIPTION:
Specify a parameter variation between the individual cell models in a battery block that you generate using Simscape™ Battery™ objects and functions. When you need a high-fidelity model of a battery, to achieve high accuracy, you must consider the deviations between individual cells. This deviation can be random, for example, due to manufacturing tolerances, or specific to individual cells, for example, if the state of health (SOH) varies between cells. The battery blocks that you generate with Simscape Battery support the specification of a variation in the parameters at different design levels.


COMPONENT: simscapebattery
EXAMPLENAME: CharacterizeCellThermalRunawayARCExample
EXAMPLETITLE: Characterize Cell Thermal Runaway with Accelerating Rate Calorimetry (ARC) Test
PRODUCT: MATLAB;Simulink;Simscape;Simscape Battery;Stateflow
DESCRIPTION:
Characterize the thermal runaway behavior of a battery cell by simulating an accelerating rate calorimetry (ARC) test.


COMPONENT: simscapebattery
EXAMPLENAME: BatteryCellCharacterizationForElectricVehiclesExample
EXAMPLETITLE: Characterize Battery Cell for Electric Vehicles
PRODUCT: MATLAB;Simscape Battery;Simscape;Simulink
DESCRIPTION:
Characterize a battery cell for electric vehicle applications using the test method from [1]. This example estimates the parameters of BAK N18650CL-29 18650 type lithium-ion cells [2] at five different ambient temperatures. The battery hybrid pulse power characterization (HPPC) test is performed in controlled environmental chambers.


COMPONENT: simscapebattery
EXAMPLENAME: ChargeDischargeBatteryModuleWithSOCEstimatorExample
EXAMPLETITLE: Charge and Discharge Battery Module with State of Charge Estimator
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Cyclically charge and discharge a battery module while estimating the state of charge (SOC) of the three parallel assemblies of the module over time. This example uses the SOC estimation to switch between the charging and discharging profiles. For the estimation, the Kalman filter uses an initial SOC estimation and the voltage, current, and temperature of the parallel assemblies. The model estimates the temperature of the parallel assemblies from the average of the cell temperatures of each parallel assembly.


COMPONENT: simscapebattery
EXAMPLENAME: ChargeBatteryModuleWithSimscapeChargerBlockExample
EXAMPLETITLE: Charge Battery Module with Charger Block
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Charge a battery module using a constant-current step followed by a constant-voltage step. This is a CC-CV profile. The battery simulation utilizes a Simscape™ Battery™ Charger block. At the start of the simulation, the battery module has a state of charge (SOC) of 10%. The Charger block performs a constant-current (CC) charging until it reaches the predefined module voltage limit of 4.1 V. The block then switches to a constant-voltage (CV) control step where the current gradually decreases until it reaches a threshold of 0.5 A, specified in the Current Threshold parameter. The charging procedure stops once the current reaches the designated threshold.


COMPONENT: simscapebattery
EXAMPLENAME: ChargeDischargeBatteryModuleWithPassiveBalancingExample
EXAMPLETITLE: Charge and Discharge Battery Module with Passive Balancing
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Perform a cyclic charge and discharge cycle on a battery module while balancing the voltages of the module parallel assemblies.


COMPONENT: simscapebattery
EXAMPLENAME: DesignModuleAutomotiveReqExample
EXAMPLETITLE: Design Battery Module for Automotive Requirements
PRODUCT: MATLAB;Simscape Battery;Simulink;Simscape
DESCRIPTION:
Design a battery module and a cooling plate from a battery cell test data. Modular battery units are a good solution to decrease the cost of automotive battery packs. Battery modules can help meet requirements of different customers in similar industry domains. The battery cells are typically parameterized using pulse discharge and charge data. This example uses the high pulse power characterization (HPPC) test [1] to estimate the battery ohmic resistance and other dynamic resistance values.


COMPONENT: simscapebattery
EXAMPLENAME: ChargeDischargeModuleAssemblyWithCoolantControlExample
EXAMPLETITLE: Charge and Discharge Module Assembly with Coolant Control
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Perform a charging and discharging cycle on a battery module assembly while monitoring the cell temperature and enabling cooling.


COMPONENT: simscapebattery
EXAMPLENAME: SwitchedCapacitorBalancingExample
EXAMPLETITLE: Balance Battery Cells with Switched Capacitor Method
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Balance a battery with two cells connected in series by using the switched-capacitor (SC) strategy for active cell balancing. For shuttling the energy between the battery cells, this method uses capacitors as external energy storage elements. To balance N cells, the SC method requires N-1 capacitors and 2*N bidirectional switches. The control strategy has two states only and can work in charging and discharging modes. The initial state of charge (SOC) is 0.7 for one cell and 0.75 for the other. To generate more detailed battery packs, use the objects and functions in the Battery Pack Model Builder.


COMPONENT: simscapebattery
EXAMPLENAME: BatteryCellBalancingExample
EXAMPLETITLE: Battery Passive Cell Balancing
PRODUCT: MATLAB;Simscape Battery;Simulink
DESCRIPTION:
Balance a battery with two cells connected in series by using a passive cell balancing algorithm. The initial state-of-charge (SOC) for the two cells are equal to 0.7 and 0.75. The balancing procedure depends on the cell voltages. Alternatively, you can use the SOC values for balancing. When the balancing is active, a bleeding resistor switches on to bleed the cells with higher charge. You can use the objects and functions in the Battery Pack Model Builder to generate more complex battery packs.


COMPONENT: simscapebattery
EXAMPLENAME: VanadiumRedoxFlowBatteryExample
EXAMPLETITLE: Analyze Performance of Vanadium Redox Flow Battery
PRODUCT: MATLAB;Simscape Battery;Simscape;Simulink
DESCRIPTION:
Model a vanadium redox flow battery (VRFB), calculate the state of charge (SOC), and assess the impact of electrolyte flow rate on the performance of the battery.


COMPONENT: simscapebattery
EXAMPLENAME: ProtectBatteryChargeAndDischargeForElectricVehicleExample
EXAMPLETITLE: Protect Battery During Charge and Discharge for Electric Vehicle
PRODUCT: MATLAB;Simscape;Simscape Battery;Stateflow;Simulink
DESCRIPTION:
Efficiently charge and discharge a battery for an electric vehicle (EV) and handle battery faults. Portable electronics and EV widely use li-ion batteries as power source due to their high-energy density. But li-ion batteries also have safety issues due to extreme conditions such as over-discharge, over-charge, high temperature, and low temperature. These extreme conditions can damage the battery and effect its performance in the long term. In some cases they can cause loss of stability which leads to thermal runaway.


COMPONENT: simscapebattery
EXAMPLENAME: BatteryCapacityEstimationExample
EXAMPLETITLE: Estimate Battery State of Health Based on Capacity Fade
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Estimate the battery capacity and state of health (SOH) by using a Kalman filter. The initial state of charge (SOC) of the battery is equal to 0.5. The estimator uses an initial condition for the SOC equal to 0.8. The battery keeps charging and discharging for 50 hours. The example estimates the battery capacity, in ampere-hour, and the SOC by using an extended Kalman Filter. The estimation error for the battery capacity is less than 4%. The SOC is estimated using an extended Kalman filter. When using fixed capacity the estimated SOC value diverges from the true value. To demonstrate the functionality of the estimator and to restrict the duration of the simulation, this example models an increased capacity fade rate.


COMPONENT: simscapebattery
EXAMPLENAME: SizeResistorForBatteryCellBalancingExample
EXAMPLETITLE: Size Resistor for Battery Passive Cell Balancing
PRODUCT: MATLAB;Simulink;Simscape;Simscape Battery
DESCRIPTION:
Implement a passive cell balancing for a lithium-ion battery pack. Cell-to-cell differences in the battery module create imbalances in the cell state-of-charge (SOC) and voltages. In this example, the balancing algorithm triggers when the battery pack is idle and the difference in the cell SOC is greater than a certain predefined value. The passive balancing shunt resistor is sized based on power loss and balancing time considerations.


COMPONENT: simscapebattery
EXAMPLENAME: PerformControlledChargingDischargingOnModuleExample
EXAMPLETITLE: Perform Controlled Charging and Discharging on Battery Module
PRODUCT: MATLAB;Simscape Battery
DESCRIPTION:
Perform a cyclic charge and discharge profile on a battery module by using the Battery CC-CV block. At the start of the simulation, the battery module has a state of charge (SOC) of 10%. The Battery CC-CV block performs a constant-current (CC) charging until it reaches the limit cell voltage of 4.1 V specified in the Maximum cell voltage (V) parameter. The block then charges the battery with a constant-voltage (CV) profile until the module SOC reaches 90%. Finally, the block starts a CC discharging procedure and discharges the module until the SOC reaches the initial value of 10%. The charge and discharge cycle then restarts.


COMPONENT: simscapeelectrical
EXAMPLENAME: ACCableWithBondedSheathsExample
EXAMPLETITLE: AC Cable with Bonded Sheaths
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A three-phase cable model comprised of multiple pi-sections. Each phase is enclosed in a conductive sheath. The conductive sheath is connected to ground at either end of the cable through a simple resistance. A high-voltage source provides power to an unbalanced resistive load through the power cable. You can configure the sheath to be either series-bonded or cross-bonded. You can also configure the number of pi-sections. Increasing the number of pi-sections improves the accuracy but slows down the simulation. To facilitate convergence, the voltage source includes an internal impedance.


COMPONENT: simscapeelectrical
EXAMPLENAME: AMRadioReceiverExample
EXAMPLETITLE: AM Radio Receiver
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A simplified AM radio receiver. A single tone signal at 2kHz is transmitted with a carrier frequency of 600kHz. The variable capacitor, Cres, in the resonant circuit is used in order to sweep through a certain frequency span. When the resonance passes through 600kHz, the signal is picked up and amplified by a two-stage Class A RF power amplifier. The signal is finally extracted by a diode detector, where it would normally be passed on to an audio amplifier (not included here). The Scope displays the final output, the value of the resonant capacitance, and the received and amplified signals.


COMPONENT: simscapeelectrical
EXAMPLENAME: ARINC429CommunicationLinkExample
EXAMPLETITLE: ARINC 429 Communication Link
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A communication link that follows the ARINC 429 specification. Here it is configured for 100kBits per second operation. The ARINC 429 specification is for a simplex broadcast bus with odd parity checking. The cable is a balanced line comprising a twisted pair for data wires A and B, plus an outer shield. This model can be used to check compliance with the ARINC 429 specification, and to assess the impact of different cable lengths, cable parameters and abstracted transmitter and receiver characteristics. It can also be used to check operation with multiple receivers, the ARINC 429 specification allowing for up to 20 receivers to connect to a single transmitter.


COMPONENT: simscapeelectrical
EXAMPLENAME: AdmittanceOfRLCLadderExample
EXAMPLETITLE: Input Admittance Response of RLC Ladder Network with Mutual Coupling Between Multiple Coils
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a four-section ladder network that comprises RLC components with mutual coupling between multiple coils. You can use this ladder network representation to model the disc winding of a transformer. The number of sections of a ladder network depends on the number of discs in the winding. Each section can model two or three discs in the winding.


COMPONENT: simscapeelectrical
EXAMPLENAME: AnalogAntiAliasingFilterExample
EXAMPLETITLE: Analog Anti-Aliasing Filter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An analog implementation of an anti-aliasing filter for use with an A-to-D converter. The filter cut-off frequency is set to 500Hz in order to match the A-to-D converter sampling frequency of 1kHz. The test signal incorporates a desired 50Hz sinusoid plus a higher frequency component at 1100Hz that cannot be captured with a 1kHz A-to-D sampling frequency. The scope shows the captured signal without and with anti-aliasing. With the anti-alias filter the 50Hz sine wave amplitude is correctly measured with an amplitude of 1 and corresponding power of 0.5W, i.e., 27dBm for a 1ohm reference load.


COMPONENT: simscapeelectrical
EXAMPLENAME: AstableOscillatorExample
EXAMPLETITLE: Astable Oscillator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An implementation of an astable oscillator circuit. The circuit output voltage V2 oscillates in an unstable fashion between high and low states.


COMPONENT: simscapeelectrical
EXAMPLENAME: AudioPowerAmplifierExample
EXAMPLETITLE: Audio Power Amplifier with H-Bridge
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An H-bridge configuration switching audio power amplifier circuit. Switching audio power amplifiers are more efficient than conventional power amplifiers as switching devices are operating only in the fully-on and fully-off states. This audio power amplifier uses a 1MHz switching frequency and has a PI feedback controller to ensure that output voltage tracks the 2kHz and 2.5kHz sine wave inputs. The power spectrum is plotted in the Spectrum Analyzer, and can be used to inform selection of controller and filter parameters.


COMPONENT: simscapeelectrical
EXAMPLENAME: AutomotiveAlternatorExample
EXAMPLETITLE: Automotive Alternator Charging a Battery
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How alternator behavior can be abstracted to a DC model that simulates efficiently. This test harness first ramps the alternator speed linearly from zero to a typical idle speed of 900 RPM. When the generated voltage is sufficient to overcome the forward voltage drop associated with the rectifier diodes, the battery charging current starts to ramp up. The test harness then ramps up the speed to 5000 RPM, and the alternator has to back off the field voltage to maintain the regulated voltage. The model captures the increase in stator resistance as the alternator heats up, this reducing device performance


COMPONENT: simscapeelectrical
EXAMPLENAME: AutomotiveElectricalExample
EXAMPLETITLE: Automotive Electrical System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A simplified dynamic model of an automotive electrical system. The model contains electrical, mechanical, and thermal systems, and is able to simulate the effect of engine starting on the electrical network.


COMPONENT: simscapeelectrical
EXAMPLENAME: AverageValueChopperExample
EXAMPLETITLE: Average-Value Chopper Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a four-quadrant chopper. The Control subsystem implements a simple PI-based control algorithm for controlling the output current. An average-value Chopper model is used to speed up the simulation. The simulation uses both positive and negative references. The total simulation time (t) is 1 s. At t = 0.5 s, the polarity of the load DC source E changes.


COMPONENT: simscapeelectrical
EXAMPLENAME: AverageValueDCDCConverterExample
EXAMPLETITLE: Average-Value DC-DC Converter Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a buck-boost converter. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. An average-value DC-DC converter model is used to speed up the simulation. The input voltage and the system load are held constant throughout the simulation. The total simulation time (t) is 0.25 s. At t = 0.15 s, the voltage reference changes and the system switches from buck mode to boost mode.


COMPONENT: simscapeelectrical
EXAMPLENAME: BLDCHysteresisControlExample
EXAMPLETITLE: BLDC Hysteresis Current Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the currents in a BLDC based electrical drive using hysteresis controllers. A DC voltage source feeds the BLDC through a controlled three-phase inverter. A ramp of current request is provided to the motor controller. The load torque is quadratically dependent on the rotor speed. The Control subsystem implements the hysteresis-based current control strategy. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: BLDCPerformanceCurvesExample
EXAMPLETITLE: Calculate Performance Curves of BLDC
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Calculate performance curves for a brushless DC (BLDC) motor. The simulation includes a speed ramp. Ideal trapezoidal modulation waves are used to drive an average-value converter. A triggered subsystem is used to determine the peak torque, power, current, and efficiency values for a given speed.


COMPONENT: simscapeelectrical
EXAMPLENAME: BLDCPositionControlExample
EXAMPLETITLE: BLDC Position Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angle in a BLDC based electrical drive. An ideal torque source provides the load. The Control subsystem uses a PI-based cascade control structure with three control loops, an outer position control loop, a speed control loop and an inner current control loop. The BLDC is fed by a controlled three-phase inverter. The gate signals for the inverter are obtained from hall signals. The simulation uses step references. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: BLDCSpeedControlExample
EXAMPLETITLE: BLDC Speed Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a BLDC based electrical drive. An ideal torque source provides the load. The Control subsystem uses a PI-based cascade control structure with an outer speed control loop and an inner dc-link voltage control loop. The dc-link voltage is adjusted through a DC-DC buck converter. The BLDC is fed by a controlled three-phase inverter. The gate signals for the inverter are obtained from hall signals. The simulation uses speed steps. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: BLDCThermalExample
EXAMPLETITLE: BLDC Position Control with Thermal Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angle in a BLDC based electrical drive. The BLDC includes a thermal model and empirical iron losses. An ideal torque source provides the load. The Control subsystem uses a PI-based cascade control structure with three control loops: an outer position control loop, a speed control loop, and an inner current control loop. The BLDC is fed by a controlled three-phase inverter. The gate signals for the inverter are obtained from hall signals. The simulation uses step references. The initial temperature of the stator windings and rotor is set to 25 degrees Celsius. Ambient temperature is 27 degrees Celsius. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: BandPassCoupledInductorsExample
EXAMPLETITLE: Band-Pass Filter Using Three Mutually-Coupled Inductors
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An implementation of a band-pass filter using three mutually-coupled inductors. The model can be used to validate filter parameters which are chosen to provide a band-pass centered on 100MHz. A band-limited noise source is up-shifted by a 100MHz oscillator and applied to the filter. The response is then down-shifted by the oscillator. The model StopFcn callback takes FFTs of the source and response and estimates the filter frequency response.


COMPONENT: simscapeelectrical
EXAMPLENAME: BatteryCellBalancingExample
EXAMPLETITLE: Battery Pack Cell Balancing
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Implement a passive cell balancing for a Lithium-ion battery pack. Cell-to-cell differences in the module create imbalance in cell state of charge and hence voltages. In this example, the balancing algorithm starts when the battery pack is idle and the difference in the cell state of charge is above a certain predefined value.


COMPONENT: simscapeelectrical
EXAMPLENAME: BatteryDCFastChargingExample
EXAMPLETITLE: Battery Pack DC Fast Charging
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model an automotive battery pack for DC fast charging tasks. The battery pack consists of several battery modules, which are combinations of cells in series and parallel. Each battery cell is modeled using the Battery (Table-Based) Simscape Electrical block. In this example, the initial temperature and the state of charge are the same for all cells. The cell capacity varies according to the manufacturing tolerances or uncertainties. Three battery modules, two similar and one differing from the other two, are connected in series to simulate a battery pack. The results in this example assume an initial ambient temperature equal to zero degree Celsius. The Controls subsystem defines the logic to determine the battery pack charging time and current.


COMPONENT: simscapeelectrical
EXAMPLENAME: BatteryParameterizationExample
EXAMPLETITLE: Battery Parameter Extraction from Data
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Optimization of the Battery block's parameters to fit data defined over different temperatures. It uses the MATLAB® optimization function fminsearch . Other products available for performing this type of parameter fitting with Simscape™ Electrical™ models are the Optimization Toolbox™ and Simulink® Design Optimization™. These products provide predefined functions to manipulate and analyze blocks using GUIs or a command line approach.


COMPONENT: simscapeelectrical
EXAMPLENAME: BatteryProtectionExample
EXAMPLETITLE: Battery Pack Fault Protection
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model fault and fault protection using a fuse in an automotive battery pack. The battery pack consists of several battery modules, which are combinations of cells in series and parallel. Each battery cell is modeled using the Battery (Table-Based) Simscape Electrical block. In this example, the initial temperature and the state of charge are the same for all cells. Four battery modules, three similar and one differing from the other three, are connected in series to simulate a battery pack. The results in this example assume an initial ambient temperature equal to 25 degree Celsius. The Control subsystem defines the logic used to determine the battery pack coolant flow rate. A fuse is placed inline to battery pack as a measure of fault protection.


COMPONENT: simscapeelectrical
EXAMPLENAME: BatteryShortCircuitExample
EXAMPLETITLE: Battery Pack Short Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a short-circuit in a lithium-ion battery module. The battery module consists of 30 cells with a string of three parallel cells connected in a series of ten strings. Each battery cell is modeled using the Battery (Table-Based) Simscape Electrical block. In this example, the initial temperature and the state of charge are the same for all cells. There is no coolant flow modeled in this example. The battery module is shorted with a 0.1mOhm resistor. There is an inrush current followed by cell quick discharge and heating up. Once the cell reaches the trigger temperature for thermal runaway and cell venting, the electrical circuit is disconnected to stop the electrical simulation.


COMPONENT: simscapeelectrical
EXAMPLENAME: BatteryThermalManagementExample
EXAMPLETITLE: Battery Pack Thermal Management
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model an automotive battery pack for thermal management tasks. The battery pack consists of several battery modules, which are combinations of cells in series and parallel. Each battery cell is modeled using the Battery (Table-Based) Simscape™ Electrical™ block. In this example, the initial temperature and the state of charge are the same for all cells. Four battery modules, three similar and one differing from the other three, are connected in series to simulate a battery pack. The results in this example assume an initial ambient temperature equal to 25 degree Celsius. The Coolant Controls subsystem defines the logic used to determine the battery pack coolant flow rate.


COMPONENT: simscapeelectrical
EXAMPLENAME: BeltStarterGeneratorExample
EXAMPLETITLE: Energy Balance in a 48V Starter Generator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An interior permanent magnet synchronous machine (IPMSM) used as a starter/generator in a simplified 48V automotive system. The system contains a 48V electric network and a 12V electric network. The internal combustion engine (ICE) is represented by basic mechanical blocks. The IPMSM operates as a motor until the ICE reaches the idle speed and then it operates as a generator. The IPMSM supplies power to the 48V network, which contains the R3 power consumer. The 48V network supplies power to the 12V network which has two consumers: R1 and R2. The total simulation time (t) is 0.5 seconds. At t = 0.05 seconds, the ICE turns on. At t = 0.1 seconds, R3 switches on. At t = 0.3 seconds, R2 switches on and increases the load on the 12V electric network. The EM Controller subsystem includes a multi-rate PI-based cascade control structure which has an outer voltage-control loop and two inner current-control loops. The task scheduling in the Control subsystem is implemented as a Stateflow® state machine. The DCDC Controller subsystem implements a simple PI controller for the DC-DC Buck converter, which feeds the 12V network. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: BoostPFCExample
EXAMPLETITLE: Power Factor Correction for CCM Boost Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Correct the power factor using a PFC pre-converter. This technique is useful when non-linear impedances, such as Switch Mode Power Supplies, are connected to an AC grid. As the current flowing through the inductor is never zero during the switching cycle, the boost converter operates in Continuous Conduction Mode (CCM). The inductor current and the output voltage profiles are controlled using simple integral control. During start up, the reference output voltage is ramped up to the desired voltage.


COMPONENT: simscapeelectrical
EXAMPLENAME: BoostVoltageControlExample
EXAMPLETITLE: Boost Converter Voltage Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a boost converter. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. The input voltage is considered constant throughout the simulation. A variable resistor provides the load for the system. The total simulation time (t) is 0.25 seconds. At t = 0.15 seconds, the load changes.


COMPONENT: simscapeelectrical
EXAMPLENAME: BrushlessDCMotorExample
EXAMPLETITLE: Brushless DC Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How a system-level model of a brushless DC motor (i.e. a servomotor) can be constructed and parameterized based on datasheet information. The motor and driver are modeled as a single masked subsystem. If viewing the model in Simulink®, select the Motor and driver block, and type Ctrl+U to look under the mask and see the model structure.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckConductedEmissionExample
EXAMPLETITLE: Conducted Emission of a Buck Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A buck converter configured for a measurement of common- and differential-mode noise on the source. In order to simulate the common-mode noise, the capacitive coupling between the circuit and a reference plane must be included in the model. In this circuit, the capacitance between the switching node (between the high- and low-side transistors) and the reference plane is also included.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckPolynomialControlExample
EXAMPLETITLE: Buck Converter Polynomial Voltage Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a buck converter using a polynomial RST controller. The RST controller adjusts the duty cycle. The input voltage is considered constant throughout the simulation. A variable resistor provides the load for the system. The total simulation time (t) is 0.25 seconds. At t = 0.15 seconds, the load is changed. At t = 0.2 seconds, the voltage reference is changed from 6V to 4V.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckSurgeProtectionExample
EXAMPLETITLE: Surge Protection in Buck Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How a varistor may be applied to a buck converter in order to protect the switching MOSFETs from over-voltages due to a differential surge.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckThermalExample
EXAMPLETITLE: Buck Converter Thermal Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Models the thermal dynamics of MOSFETs in a synchronous buck converter. It matches the structure of the Buck Converter with Thermal Dynamics model. Omitting the electrical switching dynamics allows the simulation to take much larger time steps, dramatically reducing the amount of time it takes for the simulation to calculate steady-state temperatures for the MOSFETS.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckThermalDynamicsExample
EXAMPLETITLE: Buck Converter with Thermal Dynamics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a switching power supply that converts a 30V DC supply into a regulated 15V DC supply. The model can be used to both size the inductance L and smoothing capacitor C, as well as to design the feedback controller. By selecting between continuous and discrete controllers, the impact of discretization can be explored. Modeling the switching devices as MOSFETs rather than ideal switches ensures that device on-resistances are correctly represented. The model also captures the switch-on/switch-off timing of the devices, this depending primarily on the gate capacitance values and the PWM driver output resistance.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckVoltageControlExample
EXAMPLETITLE: Buck Converter Voltage Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a buck converter. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. The input voltage is considered constant throughout the simulation. A variable resistor provides the load for the system. The total simulation time (t) is 0.25 seconds. At t = 0.15 seconds, the load changes.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckWithFaultsExample
EXAMPLETITLE: Buck Converter with Faults
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model and assess the impact of component tolerances and fault events on the operation of a switching power supply. The R, L, and C components all have tolerances, operational limits, and faults defined. The faults can be enabled within the block dialog or using MATLAB® Commands. The capacitor fault is already enabled to cut in at 1.5e-3 seconds.


COMPONENT: simscapeelectrical
EXAMPLENAME: ChopperFidelityComparisonExample
EXAMPLETITLE: Chopper Model Fidelity Comparison
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use different levels of fidelity in chopper converters. The system contains three four-quadrant choppers. The top converter uses ideal switches at a sample time of 10 us. To yield accurate results even though the model is under sampled at a sample time of 50 us, the middle chopper uses averaged switches with averaged pulses. To further increase the sample rate and to operate as an ideal averaged chopper, the bottom converter uses averaged switches and duty cycles instead of gate pulses. The Control subsystem contains a PWM generator. The Scopes subsystem contains Scope blocks that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: ClassCChopperRegenerationExample
EXAMPLETITLE: First and Second Quadrant Chopper Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a two-quadrant chopper. The two-quadrant chopper operates in the first and second quadrants, allowing positive and negative output current. The Control subsystem implements a simple PI-based control algorithm for controlling the output current. The load of the system is considered constant throughout the simulation.


COMPONENT: simscapeelectrical
EXAMPLENAME: ClassDChopperControlExample
EXAMPLETITLE: First and Fourth Quadrant Chopper Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a two-quadrant chopper. The two-quadrant chopper operates in the first and fourth quadrants, allowing positive and negative output voltage. The Control subsystem implements a simple PI-based control algorithm for controlling the output current. The total simulation time (t) is 0.5 seconds. At t = 0.25 seconds, the polarity of the load DC source E is changed.


COMPONENT: simscapeelectrical
EXAMPLENAME: ClassEDCDCConverterExample
EXAMPLETITLE: Class E DC-DC Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Class E power converter with frequency control. A simple integral control is implemented in Simulink® in the Controller block, and is designed to deliver 100W into a 5ohm load. The switch is an LDMOS, high-voltage transistor with a nonlinear capacitance model, and R Trans is the equivalent series resistance of the transformer. The Output scope shows the drain-source voltage for evaluation of the voltage stress on the switch. Note that, due to the nonlinear output capacitance of the transistor, the peak voltage stress is higher than would be expected if the output capacitance were constant. In addition, the scope also shows the frequency control signal, the output voltage, and the reference value for the output voltage. This model can be used to calculate the output power information from components in the circuit.


COMPONENT: simscapeelectrical
EXAMPLENAME: ClassERFAmplifierExample
EXAMPLETITLE: Class-E RF Amplifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A class-E RF amplifier with circuit parameters chosen for an 80m wavelength. Class-E amplifiers achieve high efficiency levels as the MOSFETs never have simultaneously high Vds and Ids. The load network is used to shape the voltage and current waveforms. This model can be used to verify correct operation and to support component selection. Correct operation of the circuit is particularly sensitive to source resistance, R_source. The capacitance parameters for the two MOSFETs are representative for an FQA11N90 device.


COMPONENT: simscapeelectrical
EXAMPLENAME: ClockedResetSRLatchExample
EXAMPLETITLE: Clocked Reset-Dominant SR-Latch
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a Reset-dominant SR-Latch from Simscape™ Electrical™ logic components. Initial conditions are passed to the relevant AND gates via the initialization commands of the switches.


COMPONENT: simscapeelectrical
EXAMPLENAME: ClockedSetSRLatchExample
EXAMPLETITLE: Clocked Set-Dominant SR-Latch
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a Set-dominant SR-Latch from Simscape™ Electrical™ logic components. Initial conditions are passed to the relevant AND gates via the initialization commands of the switches.


COMPONENT: simscapeelectrical
EXAMPLENAME: ColpittsOscillatorExample
EXAMPLETITLE: LC Oscillator Based on Colpitts Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An implementation of a Colpitts oscillator circuit with a nominal frequency of 9MHz. The frequency of oscillation is given by 1/(2*pi*sqrt(L1*C1*C2/(C1+C2))). LC oscillators have good frequency selectivity due to higher Q levels than are achievable with RC oscillators.


COMPONENT: simscapeelectrical
EXAMPLENAME: CompoundMotorOptimizationExample
EXAMPLETITLE: Compound Motor Design Optimization
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Find design parameters that optimize a compound motor torque-speed curve to match the desired curve.


COMPONENT: simscapeelectrical
EXAMPLENAME: ControllablePhaseShifterExample
EXAMPLETITLE: Controllable Phase Shifter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An implementation of a first order phase shifting filter. The filter is characterized by the transfer function H(s) = (sC - gm1)/(sC + gm1). Double-click on the Set Design Parameters block to set the desired phase shift, amplitude of the input signal, and the frequency of the input signal. The block mask calls a function which sets the parameter values in the model workspace.


COMPONENT: simscapeelectrical
EXAMPLENAME: ConverterDesignExample
EXAMPLETITLE: Three-Phase High-Power Converter Design and Analysis Workflow
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The main steps involved in designing a high-power converter. High power converters are important building blocks for future electric mobility and microgrid solutions. To design a cost effective, lightweight, efficient converter, you must perform detailed analysis of different converter design options and deployment scenarios. This example helps you to simulate the steady state, transient electrical, and thermal characteristics of a three-phase two-level converter that uses Insulated-Gate Bipolar Transistor (IGBT) devices.


COMPONENT: simscapeelectrical
EXAMPLENAME: CustomInductorBHCurveExample
EXAMPLETITLE: Custom Inductor (B-H Curve)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A comparison in behavior of a linear and nonlinear inductor. Starting with fundamental parameter values, the parameters for linear and nonlinear representations are derived. These parameters are then used in a Simscape™ model and the simulation outputs compared.


COMPONENT: simscapeelectrical
EXAMPLENAME: CustomPMSMExample
EXAMPLETITLE: Three-Phase Custom PMSM
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A custom Simscape™ implementation of a Permanent Magnet Synchronous Machine (PMSM). To view the PMSM source code, double-click on the motor block and then click on the hyperlink 'Source code'. This test circuit shows the PMSM being used as a generator, the rectifier block converting the induced AC back EMFs to a DC voltage which is in turn applied to a resistive load.


COMPONENT: simscapeelectrical
EXAMPLENAME: CustomSMExample
EXAMPLETITLE: Three-Phase Custom Synchronous Machine
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A custom Simscape™ implementation of a Synchronous Machine (SM). To view the SM source code, double-click on the Synchronous Machine block and then click on the hyperlink 'Source code'.


COMPONENT: simscapeelectrical
EXAMPLENAME: CustomTransformerBHCurveExample
EXAMPLETITLE: Custom Transformer (B-H Curve)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Calculation and confirmation of a nonlinear transformer core magnetization characteristic. Starting with fundamental parameter values, the core characteristic is derived. This is then used in a Simscape™ model of an example test circuit which can be used to plot the core magnetization characteristic on an oscilloscope. Model outputs are then compared to the known values.


COMPONENT: simscapeelectrical
EXAMPLENAME: CustomZigzagTransformerExample
EXAMPLETITLE: Three-Phase Custom Zigzag Transformer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Two different ways to create a custom transformer component. The first uses built-in library blocks to lay out the magnetic circuit as a masked Simulink® subsystem. The second builds a custom Simscape™ component using the Simscape language.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCDCFidelityComparisionExample
EXAMPLETITLE: DC-DC Converter Model Fidelity Comparison
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use different levels of fidelity in DC-DC converters. The system contains three buck-boost converters. The top converter uses an ideal switch at a sample time of 10 us. To yield accurate results even though the model is under sampled at a sample time of 50 us, the middle converter uses an averaged switch with averaged pulse. To further increase the sample rate and to operate as an ideal averaged converter, the bottom converter uses an averaged switch and duty cycle instead of gate pulse. The Control subsystem contains a PWM generator. The Scopes subsystem contains Scope blocks that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCDCLLCConverterExample
EXAMPLETITLE: DC-DC LLC Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A DC-DC LLC power converter with frequency control. The Controller block implements a simple integral control in Simulink™. This integral control achieves a nominal output voltage, specified in the variable Vout_nominal . The Output scope shows the frequency control signal, the output voltage, and the reference value for the output voltage. During startup, the reference value ramps up to its desired setpoint. The design of the LLC powertrain is computed automatically using the first harmonic approximation.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCFastChargingStationExample
EXAMPLETITLE: DC Fast Charging Station for Electric Vehicles with Solar Cogeneration
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical;Stateflow;System Composer
DESCRIPTION:
Models a DC fast charging station with solar cogeneration connected with the three battery packs of electric vehicles (EV).


COMPONENT: simscapeelectrical
EXAMPLENAME: DCMotorControlExample
EXAMPLETITLE: DC Motor Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A cascade speed-control structure for a DC motor. A PWM controlled four-quadrant Chopper is used to feed the DC motor. The Control subsystem includes the outer speed-control loop, the inner current-control loop, and the PWM generation. The total simulation time (t) is 4 seconds. At t = 1.5 seconds, the load torque increases. At t = 2.5 seconds, the reference speed is changed from 1000 rpm to 2000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCMotorLeadLagControlExample
EXAMPLETITLE: DC Motor Control (Lead-Lag)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A lead-lag speed-control structure for a DC motor. A PWM controlled four-quadrant Chopper is used to feed the DC motor. The Control subsystem includes a lead-lag controller, a constant gain, and the PWM generation. The total simulation time (t) is 4 seconds. At t = 1.5 seconds, the load torque increases. At t = 2.5 seconds, the reference speed is changed from 1000 rpm to 2000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCMotorPredictiveControlExample
EXAMPLETITLE: DC Motor Control (RST)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An RST speed-control structure for a DC motor. A PWM controlled four-quadrant Chopper is used to feed the DC motor. The Control subsystem includes the RST controller with control horizon of 30, and the PWM generation. A sensor measures the rotor speed with a delay of 5ms. The total simulation time (t) is 4 seconds. At t = 1.5 seconds, the load torque increases. At t = 2.5 seconds, the reference speed is changed from 1000 rpm to 2000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCMotorSmithPredictorExample
EXAMPLETITLE: DC Motor Control (Smith Predictor)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Smith Predictor speed-control structure for a DC motor. A PWM controlled four-quadrant Chopper is used to feed the DC motor. The Control subsystem includes the Smith predictor controller, and the PWM generation. A sensor measures the rotor speed with a delay of 5ms. The total simulation time (t) is 4 seconds. At t = 1.5 seconds, the load torque increases. At t = 2.5 seconds, the reference speed is changed from 1000 rpm to 2000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: DCMotorStateObserverExample
EXAMPLETITLE: DC Motor Control (State-Feedback and Observer)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A state-feedback speed-control structure for a DC motor. A PWM controlled four-quadrant Chopper is used to feed the DC motor. The Control subsystem includes the state-feedback control loop, and the PWM generation. The state vector includes the rotor speed which is measured, and the dc motor current, which is estimated using an observer. Both the observer and state-feedback controller are synthesized by pole placement using the state-space model of the system. The total simulation time (t) is 4 seconds. At t = 1.5 seconds, the load torque increases. At t = 2.5 seconds, the reference speed is changed from 1000 rpm to 2000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: DeltaSigmaADCWithNoiseExample
EXAMPLETITLE: Delta Sigma ADC with Noise
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A simple implementation of a sigma delta analog-to-digital converter. An input in the range 0 to Vref (=1V) is integrated until it causes the integrator to reset. The time to reset is proportional to the input value. Demodulation of the pulses is performed by a low-pass filter. The Asynchronous Sample & Hold block behaves like an edge-triggered D-type flip-flop, passing input U to output Y only on a rising edge of the clock. This model can be used to explore and understand the effect of op-amp impairments such as equivalent input noise on converter accuracy. To turn off the noise, open block Vn and select 'Disabled' for the noise mode.


COMPONENT: simscapeelectrical
EXAMPLENAME: DifferentialPairAmplifierExample
EXAMPLETITLE: Differential Pair Amplifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A differential pair amplifier circuit. The circuit can be used to explore the properties of a differential pair amplifier. The model can be tested using differential and common-mode inputs. The balanced output has zero gain in common-mode provided that the two transistors have identical properties.


COMPONENT: simscapeelectrical
EXAMPLENAME: DiodeRingMixerExample
EXAMPLETITLE: Diode Ring Mixer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How a diode ring can be used to demodulate a frequency-modulated signal. The RF input has a fixed frequency of 9MHz, and the local oscillator has a fixed frequency of 11MHz. Hence the frequency-modulated signal is a sine wave of 2MHz. This 2MHz component is clearly visible in the IF response. The second component in the IF response is the sum of the RF and local oscillator frequencies i.e. 20MHz.


COMPONENT: simscapeelectrical
EXAMPLENAME: DistanceProtectionExample
EXAMPLETITLE: Distance Relay Protection in AC Microgrid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a distance relay in an AC microgrid. The relay block comprises impedance relay characteristic and mho relay characteristic. You can use this example to study the performance of impedance relay and mho relay in various fault conditions. Both the relays have two types of relays for ground fault and phase-phase fault.


COMPONENT: simscapeelectrical
EXAMPLENAME: DualActiveBridgeControlExample
EXAMPLETITLE: Dual Active Bridge Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a dual active bridge DC-DC converter. Each switch is on for 50% of its switching period. A phase shift controller introduces a variable phase shift in the output bridge and controls the output voltage. The input voltage and the system load are held constant throughout the simulation. The total simulation time (t) is 0.25 s. At t = 0.15 s, the voltage reference changes.


COMPONENT: simscapeelectrical
EXAMPLENAME: EfficiencyMapFromMotorCADExample
EXAMPLETITLE: Import Efficiency Map Data from Motor-CAD
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Import efficiency map data from Motor-CAD to parameterize the Simscape™ Electrical™ Motor & Drive (System Level) block. This provides fast system-level simulation capability of a motor drive whilst still making accurate predictions about losses.


COMPONENT: simscapeelectrical
EXAMPLENAME: ElectricMachineTestRigExample
EXAMPLETITLE: Electric Engine Dyno
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model an electric vehicle dynamometer test. The test environment contains an asynchronous machine (ASM) and an interior permanent magnet synchronous machine (IPMSM) connected back-to-back through a mechanical shaft. Both machines are fed by high-voltage batteries through controlled three-phase converters. The 164 kW ASM produces the load torque. The 35 kW IPMSM is the electric machine under test. The Control Machine Under Test (IPMSM) subsystem controls the torque of the IPMSM. The controller includes a multi-rate PI-based control structure. The rate of the open-loop torque control is slower than the rate of the closed-loop current control. The task scheduling for the controller is implemented as a Stateflow® state machine. The Control Load Machine (ASM) subsystem uses a single rate to control the speed of the ASM. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: EnergyScavengerExample
EXAMPLETITLE: Energy Scavenger
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How the performance of a rotational energy scavenger can be explored using a simple representative model. Electrical energy is produced from an off-center mass attached to the shaft of a DC motor. The mass, geometry, motor and electrical parameters must be matched to the expected mechanical excitation. The generated electrical power is less than the extracted mechanical power primarily due to motor winding losses and viscous damping for the rotor. This example is based on Nunna, K. "Constructive interconnection and damping assignment passivity-based control with applications", Imperial College London (2014). The model here is simplified in that the DC-DC converter is omitted.


COMPONENT: simscapeelectrical
EXAMPLENAME: ExternallyExcitedSMFOCExample
EXAMPLETITLE: Externally Excited Synchronous Motor Field Oriented Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an externally excited synchronous motor (SM) drive by using field-oriented control. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and through a controlled two-quadrant chopper for the rotor winding. Both converters are controlled using Averaged Switch and modulation waveforms for fast simulation. The implementation allows you to easily switch to PWM control signals. Current references for the d-axis, q-axis, and excitation are generated offline and implemented using 3-D lookup tables. Use the model to design and evaluate in real-time the SM control algorithm. For controller deployment on an embedded microcontroller, use optimized controllers from the Motor Control Blockset™ libraries. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: FidelityVariantsExample
EXAMPLETITLE: Manage Model Fidelity Using Variants
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Compare and contrast modeling different fidelity levels by using variants. The controller model uses a Variant Source block configured in Expression mode. The plant model uses a Variant Subsystem.


COMPONENT: simscapeelectrical
EXAMPLENAME: FivePhasePMSMTorqueExample
EXAMPLETITLE: Five-Phase PMSM Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an electrical-traction drive based on a five-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through a controlled five-phase converter. The PMSM operates in both motoring and generating modes according to the load. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the PMSM torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to a relevant q-axis current reference. The current control is PI-based. The simulation uses several torque steps in both motor and generator modes. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: FivePhasePMSMVelocityExample
EXAMPLETITLE: Five-Phase PMSM Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in an electrical-traction drive based on a five-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through a controlled five-phase converter. The PMSM operates in both motoring and generating modes according to the load. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a PI-based cascade control structure that has an outer angular-velocity-control loop and four inner current-control loops. During the one second simulation, the angular velocity demand is 0 rpm, 500 rpm, 2000 rpm, and then 3000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: FivePhaseSRMControlExample
EXAMPLETITLE: Five-Phase Switched Reluctance Machine Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a five-phase switched reluctance machine (SRM) based electrical drive. A DC voltage source feeds the SRM through a controlled five-arm bridge. The converter turn-on and turn-off angles are held constant.


COMPONENT: simscapeelectrical
EXAMPLENAME: FlybackExample
EXAMPLETITLE: Flyback Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How a flyback converter can step-up a 5V DC source into a 15V DC regulated supply. The voltage is increased by creating a time-varying voltage across a transformer primary. The transformer steps up the voltage which is then rectified back to DC by the diode. Closed-loop control over the output voltage is effected by controlling the switching frequency on the primary side.


COMPONENT: simscapeelectrical
EXAMPLENAME: FourPhaseOEWPMSMControlExample
EXAMPLETITLE: Velocity Control of Four-Phase PMSM with Open-End Winding
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in an electrical-traction drive that uses a four-phase permanent magnet synchronous machine (PMSM) with an open-end winding. To view the source code of the Open-End PMSM (Four-Phase) block, double-click the block and then click the 'Source code' hyperlink in the Description tab. A DC voltage source feeds the PMSM through two controlled four-phase converters. The PMSM operates in both motoring and generating modes according to the load. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a PI-based cascade control structure that has an outer angular-velocity-control loop and four inner current-control loops. During the one second simulation, the angular velocity demand is 0 rpm, 500 rpm, 2000 rpm, and then 3000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: FourPhasePMSMTorqueExample
EXAMPLETITLE: Four-Phase PMSM Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an electrical-traction drive based on a four-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through a controlled four-phase converter. The PMSM operates in both motoring and generating modes according to the load. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the PMSM torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to a relevant q-axis current reference. The current control is PI-based. The simulation uses several torque steps in both motor and generator modes. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: FourPhasePMSMVelocityExample
EXAMPLETITLE: Four-Phase PMSM Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in an electrical-traction drive based on a four-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through a controlled four-phase converter. The PMSM operates in both motoring and generating modes according to the load. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a PI-based cascade control structure that has an outer angular-velocity-control loop and four inner current-control loops. During the one second simulation, the angular velocity demand is 0 rpm, 500 rpm, 2000 rpm, and then 3000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: FourPhaseSRMControlExample
EXAMPLETITLE: Four-Phase Switched Reluctance Machine Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a four-phase switched reluctance machine (SRM) based electrical drive. A DC voltage source feeds the SRM through a controlled four-arm bridge. The converter turn-on and turn-off angles are held constant.


COMPONENT: simscapeelectrical
EXAMPLENAME: FourQuadrantChopperExample
EXAMPLETITLE: Four-Quadrant Chopper Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a four-quadrant chopper. The Control subsystem implements a simple PI-based control algorithm for controlling the output current. The simulation uses both positive and negative references. The total simulation time (t) is 1 second. At t = 0.5 seconds, the polarity of the load DC source E is changed.


COMPONENT: simscapeelectrical
EXAMPLENAME: FourSwitchBuckBoostExample
EXAMPLETITLE: Four-Switch Buck-Boost Converter Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a four-switch buck-boost converter. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. In both the boost and buck modes, one switch controls the duty cycle, one is operated inversely and the other two are kept in fix positions. The input voltage and the system load are considered constant throughout the simulation. The total simulation time (t) is 0.25 seconds. At t = 0.15 seconds, the voltage reference changes and the system switches from buck mode to boost mode.


COMPONENT: simscapeelectrical
EXAMPLENAME: FrequencyDependentLineExample
EXAMPLETITLE: Frequency-Dependent Transmission Line
PRODUCT: MATLAB;Simulink;RF Toolbox;Simscape;Simscape Electrical
DESCRIPTION:
A custom frequency-dependent transmission line model. The characteristic admittance and propagation function are first derived from the frequency-dependent resistance, reactance, and susceptance. The derived values are fitted using RF Toolbox. The Universal Line Model (ULM) [1] is then implemented in Simscape based on the fitted parameters. The results from the frequency-dependent transmission line model and the classic pi-section transmission line model are compared.


COMPONENT: simscapeelectrical
EXAMPLENAME: FuelCellIVCharacteristicExample
EXAMPLETITLE: Fuel Cell I-V Characteristic
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
This model represents a harness for calibration of fuel cell (FC) parameters. This example extracts I-V and power characteristic curves from a datasheet. The datasheet also contains specific properties such as the minimum and maximum hydrogen and the air flows.


COMPONENT: simscapeelectrical
EXAMPLENAME: FuelCellSystemExample
EXAMPLETITLE: Fuel Cell System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Fuel Cell system that operates at stochiometric conditions and nominal parameters. The power delivered varies as a function of the hydrogen pressure.


COMPONENT: simscapeelectrical
EXAMPLENAME: GreenHydrogenMicrogridExample
EXAMPLETITLE: Green Hydrogen Microgrid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A DC islanded microgrid that provides power to an electrolyzer using a solar array and an energy storage system. You can use this model to evaluate the operational characteristics of producing green hydrogen over a 7-day period by power from a solar array, or from a combination of a solar array and an energy storage system. The model includes electrical, thermal liquid, and thermal gas domains.


COMPONENT: simscapeelectrical
EXAMPLENAME: GridConnectedPVExample
EXAMPLETITLE: Three-Phase Grid-Connected Solar Photovoltaic System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a three-phase grid-connected solar photovoltaic (PV) system. This example supports design decisions about the number of panels and the connection topology required to deliver the target power. The model represents a grid-connected rooftop solar PV system without an intermediate DC-DC converter. To parameterize the model, the example uses data from a solar panel manufacturer datasheet. Solar power is injected into the grid with unity power factor (UPF).


COMPONENT: simscapeelectrical
EXAMPLENAME: GridConnectedRectifierExample
EXAMPLETITLE: Three-Phase Grid-Connected Rectifier Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the DC-link voltage using a grid-connected rectifier. The Rectifier control subsystem uses a PI-based cascade control structure. The Scopes subsystem contains scopes that allow you to see the simulation results. If you have a license for HDL Coder™, you can generate VHDL code for an FPGA using the Simscape™ HDL Workflow Advisor.


COMPONENT: simscapeelectrical
EXAMPLENAME: GridTiedInverterExample
EXAMPLETITLE: Three-Phase Grid-Tied Inverter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the voltage in a grid-tied inverter system. The Voltage regulator subsystem implements the PI-based control strategy. The three-phase inverter is connected to the grid via a Circuit Breaker. The Circuit Breaker is open at the beginning of the simulation to allow synchronization. At time 0.15 seconds, the Circuit breaker closes, and the inverter is connected to the grid. The Scopes subsystem contains scopes that allow you to see the simulation results. The inverter is implemented using IGBTs. To speed up simulation, or for real-time deployment, the IGBTs can be replaced with Averaged Switches. In this way the gate signals can be averaged over a specified period or replaced with modulation waveforms.


COMPONENT: simscapeelectrical
EXAMPLENAME: GridTiedInverterOptimalIExample
EXAMPLETITLE: Three-Phase Grid-Tied Inverter Optimal Current Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the currents in a grid-tied inverter system. The Optimal controller subsystem implements an observer-based linear quadratic regulator strategy. To ensure zero steady state error, this example uses the observer as an alternative to the integral action. SPST switches connect the three-phase inverter to the grid. The switches are open at the beginning of the simulation to allow synchronization. At 0.15 seconds, the inverter is connected to the grid. Then, at 0.2 seconds the inverter increases the active power supplied to the grid. The Scopes subsystem contains scopes that allow you to see the simulation results. The inverter is implemented using Ideal Semiconductor Switch blocks. If you have a license for HDL Coder™, you can generate VHDL code for an FPGA using the Simscape™ HDL Workflow Advisor.


COMPONENT: simscapeelectrical
EXAMPLENAME: HEVPMSMDriveTestHarnessExample
EXAMPLETITLE: HEV PMSM Drive Test Harness
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A test harness for a Permanent Magnet Synchronous Motor (PMSM) drive sized for use in a typical hybrid vehicle. The test harness can be used to determine overall drive losses when operating at a given speed and torque. Tabulated losses information from this test harness can then be used by the Simscape™ Electrical™ Motor & Drive (System Level) block for rapid simulation of complete drive cycles whilst still accurately predicting overall system efficiency.


COMPONENT: simscapeelectrical
EXAMPLENAME: HVBatteryChargeDischargeExample
EXAMPLETITLE: HV Battery Charge/Discharge
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A high-voltage battery like those used in hybrid electric vehicles. The model uses a realistic DC-link current profile, which originates from a dynamic driving cycle. The total simulation time is 3600 seconds.


COMPONENT: simscapeelectrical
EXAMPLENAME: HybridLinearActuatorExample
EXAMPLETITLE: Hybrid Linear Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A hybrid actuator consisting of a DC motor plus lead screw in series with a piezoelectric stack. The DC motor and lead screw combination supports large displacements (tens of millimeters), but is dynamically slow when tracking the reference demand x_ref. Conversely the piezoelectric stack only supports a maximum displacement of +-0.1mm, but has a very fast dynamic response. Combining the two actuator technologies creates a large stroke actuator with highly precise positioning.


COMPONENT: simscapeelectrical
EXAMPLENAME: HybridPMSMTorqueExample
EXAMPLETITLE: HESM Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in a hybrid excitation synchronous machine (HESM) based electrical-traction drive. Permanent magnets and an excitation winding excite the HESM. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and through a controlled four quadrant chopper for the rotor winding. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to relevant current references. The current control is PI-based. The simulation uses several torque steps in both the motor and generator modes. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: HybridPMSMVelocityExample
EXAMPLETITLE: HESM Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in a hybrid excitation synchronous machine (HESM) based electrical-traction drive. Permanent magnets and an excitation winding excite the HESM. A high-voltage battery feeds the HESM through a controlled three-phase converter for the stator windings and through a controlled four quadrant chopper for the rotor winding. An ideal torque source provides the load. The Control subsystem includes a multi-rate PI-based cascade control structure. The control structure has an outer angular-velocity-control loop and three inner current-control loops. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IEEE9BusLoadflowExample
EXAMPLETITLE: IEEE 9-Bus Loadflow
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A model of a 9-bus three-phase power system network. This example is based on an IEEE® benchmark test case, further details of which can be found in "Power System Control and Stability" by P. M. Anderson and A. A. Fouad (IEEE Press, 2003). Simscape™ initializes two of the generators to the specified powers and terminal voltages, and initializes the remaining swing bus generator to meet just the specified voltage. The resulting load flow solution is appended to each of the busbars post-simulation. The four rows correspond to per-unit voltage, phase, active power, and reactive power respectively. Looking at Bus 1, it can be seen from the annotation that the swing generator delivers 76.4MW of active power and 27.5MVAr or reactive power to the network. Differences to the original benchmark are due to the transmission line models and transformer configurations used.


COMPONENT: simscapeelectrical
EXAMPLENAME: IEEE9BusSystemExample
EXAMPLETITLE: IEEE 9-Bus System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a 9-bus three-phase power system network. This example is based on the IEEE® benchmark test case. For more information, see "Power System Control and Stability" by P. M. Anderson and A. A. Fouad (IEEE Press, 2003)


COMPONENT: simscapeelectrical
EXAMPLENAME: IGBTBehavioralExample
EXAMPLETITLE: IGBT Behavioral Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Test harness can be used to validate the 'Simplified I-V characteristics and event-based timing' Modeling option of the Simscape™ Electrical™ N-Channel IGBT. This modeling option only requires I-V data corresponding to the on-state gate voltage, and models turn-on rise time and turn-off fall time by making collector-emitter voltage a linear function of simulation time. Advantages of this approach are faster simulation and easier parameterization.


COMPONENT: simscapeelectrical
EXAMPLENAME: IGBTCharacteristicsExample
EXAMPLETITLE: IGBT Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generation of the Ic versus Vce curve for an insulated gate bipolar transistor. Define the vector of gate-emitter voltages and minimum and maximum collector-emitter voltages by double-clicking the block labeled 'Define Conditions (Vge and Vce)'. Click on the hyperlink 'plot curves' in the model to run the simulations plot the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: TroubleshootSPICEImportExample
EXAMPLETITLE: Troubleshoot a SPICE Conversion of an IGBT Subcircuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Troubleshoot the conversion of a SPICE insulated gate bipolar transistor (IGBT) subcircuit and convert it into an equivalent Simscape™ component. The subcircuit2ssc function converts all the subcircuit components inside a SPICE netlist file into one or more equivalent Simscape files. However, in some cases, you must manually edit the original SPICE netlist.


COMPONENT: simscapeelectrical
EXAMPLENAME: IGBTDynamicCharacteristicsExample
EXAMPLETITLE: IGBT Dynamic Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How the dynamic characteristics of an IGBT depend on its parameters. A prerequisite to matching dynamic characteristics to datasheet values or measured data is to set the parameters defining the static I-V curve. For this, see the 'IGBT Characteristics' example, IGBTCharacteristics. With static parameters correctly set, the dynamic parameters can then be set as follows:


COMPONENT: simscapeelectrical
EXAMPLENAME: IGBTLossCharacteristicsExample
EXAMPLETITLE: IGBT Loss Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use Simscape™ Electrical™ detailed switching device models to create tabulated switching loss data. This tabulated data can then be used with the piecewise linear switching device component models to predict total losses in system models configured for fast and/or fixed-step simulation.


COMPONENT: simscapeelectrical
EXAMPLENAME: IGBTThermalExample
EXAMPLETITLE: Quantifying IGBT Thermal Losses
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The generation of a temperature profile based on switching and conduction losses in an insulated-gate bipolar transistor (IGBT). There are two buck converters. For one converter, the IGBT attaches to a Foster thermal model. For the other converter, the IGBT attaches to a Cauer thermal model. The parameters for the thermal models are tuned to give roughly equivalent results. At a simulation time of 50ms, the driving frequency changes from 40kHz to 20kHz, which increases the conduction losses and decreases the switching losses. The change in the losses results in a corresponding change in the temperature of the IGBT.


COMPONENT: simscapeelectrical
EXAMPLENAME: IGBTThermalCharacteristicsExample
EXAMPLETITLE: IGBT Thermal Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generation of the Ic versus Vce curve for an IGBT at two different temperatures. To generate the plot, click on the hyperlink in the model labeled 'Plot IGBT curves'.


COMPONENT: simscapeelectrical
EXAMPLENAME: IMDriveSensorExample
EXAMPLETITLE: Three-Phase Asynchronous Drive with Sensor Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control and analyze the operation of an Asynchronous Machine (ASM) using sensored rotor field-oriented control. The model shows the main electrical circuit, with three additional subsystems containing the controls, measurements, and scopes. The Controls subsystem contains two controllers: one for the Grid-Side Converter (AC/DC) and one for the Machine-Side Converter (DC/AC). The Scopes subsystem contains two time scopes: one for the Grid-Side Converter and one for the ASM. When the model is executed, a Spectrum Analyzer opens and displays frequency data for the A-Phase Supply Current.


COMPONENT: simscapeelectrical
EXAMPLENAME: IMDriveSensorlessExample
EXAMPLETITLE: Three-Phase Asynchronous Drive with Sensorless Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control and analyze the operation of an Asynchronous Machine (ASM) using sensorless rotor field-oriented control. The model shows the main electrical circuit, with three additional subsystems containing the controls, measurements, and scopes. The Controls subsystem contains two controllers: one for the Grid-Side Converter (AC/DC) and one for the Machine-Side Converter (DC/AC). The Scopes subsystem contains two time scopes: one for the Grid-Side Converter and one for the ASM. When the model is executed, a Spectrum Analyzer opens and displays frequency data for the A-Phase Supply Current.


COMPONENT: simscapeelectrical
EXAMPLENAME: IMStartingExample
EXAMPLETITLE: Three-Phase Asynchronous Machine Starting
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a wye-delta starting circuit for an induction machine. When the supply is connected to the machine via switch S1, switch S2 is initially off resulting in the machine being connected in a wye configuration. Once the machine is close to synchronous speed, switch S2 is operated thereby reconnecting the machine in a delta configuration. The higher impedance seen by the supply when the motor is in wye configuration reduces the starting current, and causes less disruption to other connected loads.


COMPONENT: simscapeelectrical
EXAMPLENAME: IMTorqueControlExample
EXAMPLETITLE: Torque Control in Three-Level Converter-Fed Asynchronous Machine Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an asynchronous machine (ASM) based electrical-traction drive. A high-voltage battery feeds the ASM through a three-phase three-level neutral-point clamped controlled converter. The ASM operates in both motoring and generating modes. An ideal angular velocity source provides the load. The Control subsystem uses the field-oriented control strategy to control the flux and torque. The current control is PI-based. A proportional controller regulates the neutral point voltage. The simulation uses several torque steps in both motor and generator modes. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMAxleDriveEVExample
EXAMPLETITLE: IPMSM Torque Control in an Axle-Drive EV
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An interior permanent magnet synchronous machine (IPMSM) propelling a simplified axle-drive electric vehicle. A high-voltage battery feeds the IPMSM through a controlled three-phase converter. The IPMSM operates in both motoring and generating modes. The vehicle transmission and differential are implemented using a fixed-ratio gear reduction model. The Vehicle Controller subsystem converts the driver inputs into a relevant torque command. The Drive Controller subsystem controls the torque of the IPMSM. The controller includes a multi-rate PI-based control structure. The rate of the open-loop torque control is slower than the rate of the closed-loop current control. The task scheduling for the controller is implemented as a Stateflow® state machine. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMOuterLoopControlExample
EXAMPLETITLE: IPMSM Outer Loop Controller Evaluation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in an interior permanent magnet synchronous machine (IPMSM) based electrical-traction drive. For evaluation of the outer loop velocity controller, the inner loop current controller is replaced by a three-phase controlled current source. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a PI-based outer loop controller. During the three-seconds simulation, the angular velocity demand is -1000, 2000, 3000, 4000, and then 5000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMParallelHEVExample
EXAMPLETITLE: IPMSM Torque Control in a Parallel HEV
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A simplified parallel hybrid electric vehicle (HEV). An interior permanent magnet synchronous machine (IPMSM) and an internal combustion engine (ICE) provide the vehicle propulsion. The IPMSM operates in both motoring and generating modes. The vehicle transmission and differential are implemented using a fixed-ratio gear-reduction model. The Vehicle Controller subsystem converts the driver inputs into torque commands. The vehicle control strategy is implemented as a Stateflow® state machine. The ICE Controller subsystem controls the torque of the combustion engine. The Drive Controller subsystem controls the torque of the IPMSM. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMSeriesHEVExample
EXAMPLETITLE: IPMSM Torque Control in a Series HEV
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An interior permanent magnet synchronous machine (IPMSM) propelling a simplified series hybrid electric vehicle (HEV). An ideal DCDC converter, connected to a high-voltage battery, feeds the IPMSM through a controlled three-phase converter. A combustion engine driven generator charges the high-voltage battery. The vehicle transmission and differential are implemented using a fixed-ratio gear-reduction model. The Vehicle Controller subsystem converts the driver inputs into relevant commands for the IPMSM and generator. The Drive Controller subsystem controls the torque of the IPMSM. The controller includes a multi-rate PI-based control structure. The rate of the open-loop torque control is slower than the rate of the closed-loop current control. The task scheduling for the controller is implemented as a Stateflow® state machine. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMSeriesParallelHEVExample
EXAMPLETITLE: IPMSM Torque Control in a Series-Parallel HEV
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A simplified series-parallel hybrid electric vehicle (HEV). An interior permanent magnet synchronous machine (IPMSM) and an internal combustion engine (ICE) provide the vehicle propulsion. The ICE also uses electric generator to recharge the high-voltage battery during driving. The vehicle transmission and differential are implemented using a fixed-ratio gear-reduction model. The Vehicle Controller subsystem converts the driver inputs into torque commands. The vehicle control strategy is implemented as a Stateflow® state machine. The ICE Controller subsystem controls the torque of the combustion engine. The Generator Controller subsystem controls the torque of the electric generator. The Drive Controller subsystem controls the torque of the IPMSM. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMTorqueExample
EXAMPLETITLE: IPMSM Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an interior permanent magnet synchronous machine (IPMSM) based automotive electrical-traction drive. A high-voltage battery feeds the IPMSM through a controlled three- phase converter. The IPMSM operates in both motoring and generating modes according to the load. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the IPMSM torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to relevant current references. The current control is PI-based and uses a sample rate that is faster than the rate that is used for torque control. The simulation uses several torque steps in both motor and generator modes. The task scheduling is designed in Stateflow®. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMTorqueBasedLoadExample
EXAMPLETITLE: IPMSM Torque-Based Load Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an interior permanent magnet synchronous motor (IPMSM) based drive. A high-voltage battery feeds the IPMSM through a controlled three-phase inverter. A ramp of torque request is provided to the motor controller. The load torque is quadratically dependent on the rotor speed. The Control subsystem uses an open-loop approach to control the IPMSM torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to relevant current references. The current control is PI-based and uses a sample rate that is faster than the rate that is used for torque control. The task scheduling is designed in Stateflow®. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: IPMSMVelocityControlExample
EXAMPLETITLE: IPMSM Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in an interior permanent magnet synchronous machine (IPMSM) based automotive electrical-traction drive. A high-voltage battery feeds the IPMSM through a controlled three-phase converter. The IPMSM operates in both motoring and generating modes according to the load. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a multi-rate PI-based cascade control structure which has an outer angular-velocity-control loop and two inner current-control loops. The task scheduling in the Control subsystem is implemented as a Stateflow® state machine. During the one-second simulation, the angular velocity demand is 0 rpm, 500 rpm, 2000 rpm, and then 3000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: ImportIGBTFromHitachiExample
EXAMPLETITLE: Import IGBT Parameters from Hitachi
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Import parameters from a Hitachi IGBT module and save them in an IGBT(Ideal, Switching) block. The Hitachi IGBT parameters are stored in an XML file in the hitachi format.


COMPONENT: simscapeelectrical
EXAMPLENAME: InductionMachineDTCExample
EXAMPLETITLE: Asynchronous Machine Direct Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control an asynchronous machine (ASM) using the direct-torque control method. A PI-based speed controller supplies the torque reference. The direct-torque controller generates the inverter pulses.


COMPONENT: simscapeelectrical
EXAMPLENAME: InductionMachineDTCSVMExample
EXAMPLETITLE: Asynchronous Machine Direct Torque Control with Space Vector Modulator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control an asynchronous machine (ASM) using the direct-torque control method with space vector modulator. A PI-based speed controller supplies the torque reference. The direct-torque controller generates the reference voltages required by the space vector modulator. A DC voltage source feeds the ASM through a controlled average-value voltage source converter.


COMPONENT: simscapeelectrical
EXAMPLENAME: InductionMachineScalarExample
EXAMPLETITLE: Asynchronous Machine Scalar Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in an asynchronous machine (ASM) drive using the scalar V/f control method. The converter transforms a reference speed to a reference electrical frequency. The controller generates reference voltages from the reference frequency by maintaining a constant voltage-to-frequency ratio through scalar V/f control.


COMPONENT: simscapeelectrical
EXAMPLENAME: InductionMotorOnlinePumpExample
EXAMPLETITLE: Three-Phase Asynchronous Direct Online Motor Connected to Hydraulic Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
In this example, an asynchronous motor is connected to an ideal pump. The diameter of the valve on the hydraulic system affects the speed and current drawn by the motor.


COMPONENT: simscapeelectrical
EXAMPLENAME: InductorWithHysteresisExample
EXAMPLETITLE: Inductor with Hysteresis
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How modifying the equation coefficients of the Jiles-Atherton magnetic hysteresis equations affects the resulting B-H curve. The simulation parameters are configured to run four complete AC cycles with initial field strength (H) and magnetic flux density (B) both set to zero.


COMPONENT: simscapeelectrical
EXAMPLENAME: IntegratedCircuitExample
EXAMPLETITLE: Modeling an Integrated Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Two ways to create a model of an integrated circuit that can be used in conjunction with other Simscape™ Electrical™ blocks. The first approach is to build a behavioral model using Simscape Foundation Library PS blocks and/or Simulink® blocks. The second is to build an implementation model from basic Simscape Electrical blocks. To look under the masks and view the details, select the relevant block and type ctrl-U.


COMPONENT: simscapeelectrical
EXAMPLENAME: InverterVoltageExample
EXAMPLETITLE: Three-Phase Inverter Voltage Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the voltage in a three-phase inverter system. The inverter is implemented using IGBTs. To speed up simulation, or for real-time deployment, the IGBTs can be replaced with Averaged Switches. In this way the gate signals can be averaged over a specified period or replaced with modulation waveforms.


COMPONENT: simscapeelectrical
EXAMPLENAME: InvertingBuckBoostExample
EXAMPLETITLE: Inverting Topology Buck-Boost Converter Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of an inverting topology buck-boost converter. The inverting topology buck-boost converter uses only a single switch and the output voltage is of the opposite polarity than the input. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. The input voltage and the system load are considered constant throughout the simulation. The total simulation time (t) is 0.25 seconds. At t = 0.15 seconds, the voltage reference changes and the system switches from buck mode to boost mode.


COMPONENT: simscapeelectrical
EXAMPLENAME: JFETFrequencyResponseExample
EXAMPLETITLE: JFET Amplifier and Frequency Response Analysis
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An audio amplifier circuit based on an N-channel JFET. The desired operating point is taken to be Vds=5V, Id=2mA and Vgs=-2V. The manufacturer datasheet gives the JFET forward transfer conductance and output conductance values as 3mS and 50uS. These values are used to populate the mask of the N-Channel JFET block.


COMPONENT: simscapeelectrical
EXAMPLENAME: KineticEnergyRecoveryExample
EXAMPLETITLE: Kinetic Energy Recovery System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Operation of a Kinetic Energy Recovery System (KERS) on a Formula 1 car. The model permits the benefits to be explored. During braking, energy is stored in a lithium-ion battery and ultracapacitor combination. It is assumed that a maximum of 400KJ of energy is to be delivered in one lap at a maximum power of 60KW. Design parameters are the weight of the battery, ultracapacitor and motor-generator. If these parameters are all set to the very small value of 0.01kg, the lap time is 95.0 seconds, this corresponding to a car with no KERS. With default values set here, approximately 1/4 of a second is saved on the lap time when using any available electrical power when not braking. Applying KERS only to selected corners requires a larger ultracapacitor to show any significant benefit.


COMPONENT: simscapeelectrical
EXAMPLENAME: LCLineTestBridgeExample
EXAMPLETITLE: LC Transmission Line and Test Bridge
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A transmission line model and bi-directional test bridge. Reflected and transmitted signals are slightly different if the test direction is changed. This is because the line model is not symmetric. This type of model can be used both to explore the impact of cable choice on transmission characteristics, and also to compare relative fidelity of different transmission line model structures and parameterizations.


COMPONENT: simscapeelectrical
EXAMPLENAME: LDMOSParameterAnalyzerExample
EXAMPLETITLE: Interactive Generation of LDMOS Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Explore the impact of parameter choices on the I-V and C-V characteristics for a surface-potential-based p-channel LDMOS field-effect transistor model. To open the LDMOS Characteristics window, in the MATLAB® Command Window, run LDMOSParameterAnalyzer .


COMPONENT: simscapeelectrical
EXAMPLENAME: LinearActuatorControlExample
EXAMPLETITLE: Linear Electric Actuator with Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A detailed implementation model of a controlled linear actuator. The actuator consists of a DC motor driving a worm gear which in turn drives a lead screw to produce linear motion. The model includes quantization effects of the Hall-effect sensor and the implementation of the control in analog electronics. There are multiple variant subsystems in this model that have models at varying levels of fidelity.


COMPONENT: simscapeelectrical
EXAMPLENAME: LinearActuatorMotorExample
EXAMPLETITLE: Linear Electric Actuator (Motor Model)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to develop a model of an uncontrolled linear actuator using datasheet parameter values. The actuator consists of a DC motor driving a 6.25:1 worm gear which in turn drives a 3mm lead screw to produce linear motion. Manufacturer data for the actuator defines the no-load linear speed (26mm/s), rated load (1000N), rated-load linear speed (19mm/s), and maximum current (5A). The maximum static force is 4000N and the rated voltage is 24V DC.


COMPONENT: simscapeelectrical
EXAMPLENAME: LinearLEDDriverExample
EXAMPLETITLE: Linear LED Driver
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A LED driver based on a linear current regulator. The scope shows the light and current output and the supply voltage. The output comes into regulation for a supply voltage greater than about 12V.


COMPONENT: simscapeelectrical
EXAMPLENAME: LinearVoltageRegulatorExample
EXAMPLETITLE: Linear Voltage Regulator with Feedback
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A simple voltage regulator circuit constructed from discrete components. A fluctuating supply is modeled as 20V DC plus a 1V sinusoidal variation. The zener diode D1 sets the non-inverting input of the op-amp to 3.2V, and hence as the op-amp has a large gain, the op-amp inverting input and output are also at 3.2V. Hence the regulator voltage output is regulated to be 3.2*(1000+470)/470=10V. The NPN bipolar transistor is required to provide higher currents than is possible from a typical op-amp. The model can be used to check circuit operation, and to support selection of components to achieve the desired voltage regulation.


COMPONENT: simscapeelectrical
EXAMPLENAME: LinearVoltageRegulatorThermalExample
EXAMPLETITLE: Linear Voltage Regulator with Thermal Effects
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A low-cost voltage regulator circuit whose performance depends on both load current and temperature. Bias resistor R1 ensures that the voltage at the transistor base is close to the rated zener voltage. The regulator output voltage is also approximately at this voltage, the base-emitter voltage being a few tenths of a volt. The precise base-emitter voltage depends on the transistor working point (which in turn depends on the load) and also the temperature. Resistor R2 only serves to provide some protection in the event of a transient output short circuit.


COMPONENT: simscapeelectrical
EXAMPLENAME: LoadSideConverterControlExample
EXAMPLETITLE: Load Side Converter Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the RMS voltage in a load-side converter. The load is provided by a three-phase series RL element. The Control subsystem uses a PI-based cascade control structure with two control loops, an outer voltage control loop and an inner current control loop. The simulation uses step references. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: LoadflowIMInitializationExample
EXAMPLETITLE: Induction Motor Initialization with Loadflow
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Initialize a three-phase induction motor as part of a load flow analysis. When initializing an induction machine that is directly connected to an AC network, in steady state there is one degree of freedom which you can set by any one of shaft torque, shaft power, motor speed, or electrical power.


COMPONENT: simscapeelectrical
EXAMPLENAME: LoadflowSMInitializationExample
EXAMPLETITLE: Synchronous Machine Initialization with Loadflow
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Initialize synchronous machine as part of a load flow analysis. When initializing a synchronous machine there are two degrees of freedom which can be set by any two of rotor angle, active power, reactive power and terminal voltage. The pair of variables that are constrained is set by the source type drop-down menu, this having options of Swing bus, PV bus and PQ bus. Here the machine is configured for a swing bus with a 1.02 per-unit voltage and zero degrees phase.


COMPONENT: simscapeelectrical
EXAMPLENAME: LowNoiseAmplifierExample
EXAMPLETITLE: Low-Noise Amplifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A typical low-noise audio amplifier circuit. Resistor R2 provides negative feedback to stabilize the overall amplifier gain, making it independent of transistor open-loop forward transfer gain. Circuit gain is approximately defined by (R1+R2)/R1 = 101. The simulation shows that it takes the circuit a few seconds to settle to its steady operating point, and that the output is initially clipped. Input u and output y are included to support linearization.


COMPONENT: simscapeelectrical
EXAMPLENAME: LowPassOTAmplifierExample
EXAMPLETITLE: Low-Pass Filter Using Operational Transconductance Amplifiers
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a second-order active low-pass filter. The filter is characterized by the transfer function H(s) = 1 / ( (s/w1)^2 + (1/Q)*(s/w1) + 1 ) where w1 = 2*pi*f1, f1 is the cut-off frequency and Q is the quality factor. Double-click on the Set Design Parameters block to set parameters f1 and Q. The block mask calls a function which sets the parameter values in the model workspace.


COMPONENT: simscapeelectrical
EXAMPLENAME: LowPassSallenKeyFilterExample
EXAMPLETITLE: Fourth-Order Sallen-Key Lowpass Filter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An implementation of a fourth-order Sallen-Key low-pass filter using Operational Amplifiers (OPAs). The filter design parameters, cut-off frequency (f1) and DC gain (K), are specified by double-clicking on the Set Design Parameters block. Pass-band ripple is predefined to be 1dB using a Chebyshev response. The block mask calls a function which sets the parameter values in the model workspace.


COMPONENT: simscapeelectrical
EXAMPLENAME: MMCExample
EXAMPLETITLE: Three-Phase Modular Multilevel Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control in open-loop a three-phase modular multilevel converter (MMC). Each MMC arm consists of four half-bridge submodules. A wye-connected series RLC structure provides the load to the system.


COMPONENT: simscapeelectrical
EXAMPLENAME: MOSFETBuckConverterFaultExample
EXAMPLETITLE: MOSFET Fault in Buck Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How a fault may be applied to a MOSFET in a power converter in order to explore the operation of protection circuitry. After the MOSFET becomes faulted, the crowbar circuitry is activated in order to clamp the output voltage across the load and eventually to cause the fuse to blow.


COMPONENT: simscapeelectrical
EXAMPLENAME: MOSFETCharacteristicsExample
EXAMPLETITLE: MOSFET Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generation of the characteristic curves for an N-channel MOSFET. Define the vector of gate voltages and minimum and maximum drain-source voltages by double clicking on the block labeled 'Define Conditions (Vg and Vds)'. Then click on hyperlink plot results in the model.


COMPONENT: simscapeelectrical
EXAMPLENAME: MOSFETParameterAnalyzerExample
EXAMPLETITLE: Interactive Generation of MOSFET Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Explore the impact of parameter choices on the I-V and C-V characteristics for a surface-potential-based MOSFET model. To open the MOSFET Characteristics window, in the MATLAB® Command Window, type MOSFETParameterAnalyzer .


COMPONENT: simscapeelectrical
EXAMPLENAME: MOSFETThermalParameterAnalyzerExample
EXAMPLETITLE: Interactive Generation of Thermal MOSFET Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Explore the impact of parameter choices on the I-V and C-V characteristics for a surface-potential-based thermal MOSFET model. To open the Thermal Mosfet Characteristics window, in the MATLAB® Command Window, run MOSFETThermalParameterAnalyzer .


COMPONENT: simscapeelectrical
EXAMPLENAME: MOSFETYParametersExample
EXAMPLETITLE: MOSFET Characterization Using Y Parameters
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The generation of I-V and C-V characteristics for an NMOS transistor. Define the bias conditions for the gate-source and drain-source voltage sweeps and the types of plots to be generated by double-clicking the Define Sweep Parameters block. Then click on the "Generate plots" hyperlink in the model. The output capacitance, C_oss, is only shown for sweeps of the drain-source voltage. Note that the C-V characteristics can take several minutes each to generate.


COMPONENT: simscapeelectrical
EXAMPLENAME: MarineFullElectricExample
EXAMPLETITLE: Marine Full Electric Propulsion Power System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A representative marine half-ship electrical power system with base load, hotel load, bow thrusters and electric propulsion.


COMPONENT: simscapeelectrical
EXAMPLENAME: MarineHILExample
EXAMPLETITLE: Marine Power System Deployment to HIL
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A marine power system model suitable for multirate Hardware-In-the-Loop (HIL) deployment. The example uses the Simscape™ Network Couplers Library to split the model into separate Simulink® subsystems that you can deploy at different sample rates. This allows you to run parts of the system (here, for example, the turbines) with a slower sample time and reduce overall computational cost.


COMPONENT: simscapeelectrical
EXAMPLENAME: MarsHelicopterDesignExample
EXAMPLETITLE: Mars Helicopter System-Level Design
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use Simscape™ Electrical™ to model a helicopter with coaxial rotors suitable to fly on Mars. This helicopter takes inspiration from Ingenuity , the robotic helicopter developed by NASA, which accomplished the first powered flight on another planet.


COMPONENT: simscapeelectrical
EXAMPLENAME: MatrixConverterExample
EXAMPLETITLE: Three-Phase Matrix Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A three-phase matrix converter that drives a static load and draws unity power factor at the source. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: MatrixConverterIMDriveExample
EXAMPLETITLE: Scalar Control in Matrix Converter-Fed Induction Machine Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a matrix converter-fed induction machine drive by using the scalar V/f control method. To generate three-phase voltage with reference frequency, the controller maintains a constant voltage-to frequency ratio though scalar V/f control. A three-phase voltage source with fixed amplitude and frequency feeds the induction machine through a three-phase matrix converter. The matric converter is controlled using third harmonic injection Venturini modulation with unity input displacement factor. The induction machine operates in both motoring and generating modes. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: MatrixConverterVenturiniExample
EXAMPLETITLE: Three-Phase Matrix Converter with Venturini Modulation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use Venturini modulation techniques to compute the duty cycles and logic statements of a three-phase matrix converter that drives a static load. The control subsystem implements three different modulation algorithms: Venturini modulation, third harmonic enhanced Venturini modulation, and third harmonic injection Venturini modulation with unity input displacement factor. The maximum voltage transfer ratio between input and output depends on the modulation technique and it is equal to either q=0.5 or q=0.866. The Scope blocks show the voltages and currents V_ABC, V_abc, I_ABC, and I_abc, where _UPPERCASE is used for inputs and _LOWERCASE for outputs.


COMPONENT: simscapeelectrical
EXAMPLENAME: MicrocontrollerExample
EXAMPLETITLE: Microcontroller with GPIO, ADC and DAC Connections
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model the interface between a microcontroller unit (MCU) and a physical system. Here the microcontroller's GPIO, ADC and DAC connections are used to control a DC motor and connected load with limited angle travel. Load angle measurement is via a potentiometer sensor. This measurement is calibrated by initially ramping the rotor position until the photodiode detects the zero-angle light pulse from the LED. Once calibrated the MCU commands a 0.1Hz 45 degree amplitude sinusoid.


COMPONENT: simscapeelectrical
EXAMPLENAME: MicrogridEVToGridExample
EXAMPLETITLE: Microgrid with Electric Vehicles V2G (Vehicle-to-Grid) Support
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a microgrid and how to regulate its frequency by using vehicle-to-grid (V2G) support from electric vehicles (EVs).


COMPONENT: simscapeelectrical
EXAMPLENAME: MicrogridPlannedIslandingExample
EXAMPLETITLE: Microgrid Planned Islanding from Main Grid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Execute a microgrid planned islanding from the main grid by using a battery energy storage system (BESS). The model in this example comprises a medium voltage (MV) microgrid model with a BESS, a photovoltaic solar park (PV), and loads. The microgrid can operate both autonomously (islanded) or in synchronization with the main grid. In this example, the microgrid initially is in grid-connected mode. The planned islanding function controls the point of common coupling (PCC) power flow to zero Finally, the breaker opens to disconnect the microgrid from the main grid. After the islanding, the battery system performs a power dispatch, and the loads are changed.


COMPONENT: simscapeelectrical
EXAMPLENAME: MicrogridResynchronizationExample
EXAMPLETITLE: Microgrid Resynchronization with Main Grid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Resynchronize an islanded microgrid with the main grid by using a battery energy storage system (BESS). The model in this example comprises a medium voltage (MV) microgrid model with a battery energy storage system, a photovoltaic solar park (PV), and loads. The microgrid can operate both autonomously (islanded) or in synchronization with the main grid. In this example, the microgrid is first in islanded mode. The resynchronization function then synchronizes the microgrid to the main grid. Finally, the breaker closes to connect the microgrid to the main grid. After the resynchronization, the battery system performs a power dispatch and the loads are changed.


COMPONENT: simscapeelectrical
EXAMPLENAME: MixedACDCLoadflowExample
EXAMPLETITLE: Mixed AC/DC System Loadflow
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use the Load Flow Analyzer to review the load flow results of a mixed AC/DC system. The model to which this analysis is applied includes an AC load flow source, a three-phase rectifier, and three loads. One of the loads is AC, one is permanently connected on the DC side, and one is switched on the DC side.


COMPONENT: simscapeelectrical
EXAMPLENAME: MonteCarloResonantLLCDCDCExample
EXAMPLETITLE: Tolerance Study Using Monte Carlo Simulations in Resonant LLC DC-DC Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use Simscape™ Electrical™ to perform a Monte Carlo analysis to optimize the design of an LLC resonant DC-DC converter when some of its components have tolerances.


COMPONENT: simscapeelectrical
EXAMPLENAME: MotorTorqueSpeedCurvesExample
EXAMPLETITLE: Motor Torque-Speed Curves
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A comparison of the torque-speed characteristics for five different motor types. To select the motor type, right-click on the Electric Motor block and select Block Parameters (Subsystem) from the context menu. In the new window, specify the desired motor using the Label mode active choice parameter. All motors have been sized for roughly the same mechanical power rating.


COMPONENT: simscapeelectrical
EXAMPLENAME: MultiplierIntegratedCircuitExample
EXAMPLETITLE: Multiplier Integrated Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How the Multiplier block can be used to multiply or divide two input voltages. In both cases, slew rate limiting occurs until the final voltage is reached. Note that the input-side circuits must have an Electrical Reference block so that the solver can determine a voltage for every node.


COMPONENT: simscapeelectrical
EXAMPLENAME: NPNCharacteristicsExample
EXAMPLETITLE: NPN Bipolar Transistor Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generation of the Ic versus Vce curve for an NPN bipolar transistor. Define the vector of base currents and minimum and maximum collector-emitter voltages by double clicking on the block labeled 'Define Conditions (Ib and Vce)'. Run the tests and generate plots of the curves by clicking in the model on hyperlink 'plot curves'.


COMPONENT: simscapeelectrical
EXAMPLENAME: NonlinearInductorCharacteristicsExample
EXAMPLETITLE: Nonlinear Inductor Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A comparison of nonlinear inductor behavior for different parameterizations. Starting with fundamental parameter values, the parameters for linear and nonlinear representations are derived. These parameters are then used in a Simscape™ model and the simulation outputs compared.


COMPONENT: simscapeelectrical
EXAMPLENAME: OneQuadrantChopperControlExample
EXAMPLETITLE: One-Quadrant Chopper Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a one-quadrant chopper. The Control subsystem implements a simple PI-based control algorithm for controlling the output current.


COMPONENT: simscapeelectrical
EXAMPLENAME: OpAmpWithNoiseExample
EXAMPLETITLE: Op-Amp with Noise
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How noise can be incorporated into an electrical simulation. The circuit models an amplifier with gain 100 and a high-frequency roll off frequency of 10MHz. The op-amp adds noise, and it is assumed that the datasheet specifies an equivalent voltage noise density of 20nV/Hz^0.5. This is implemented using the noise voltage source Vn. Optionally, the thermal noise generated by resistors R1 and R2 can also be included by selecting 'Enabled' for the blocks' noise mode. However, running this model with different combinations of noise sources shows that the main source of noise is the equivalent noise voltage.


COMPONENT: simscapeelectrical
EXAMPLENAME: OvercurrentProtectionExample
EXAMPLETITLE: Overcurrent Relay Protection in AC Microgrid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model an overcurrent relay in an AC microgrid. You can use this example to study overcurrent relay coordination in a microgrid. The Relay block comprises two protection units, phase protection and earth protection. The phase protection unit protects the microgrid from high phase currents. The earth protection unit protects the microgrid from high earth currents. In this example the relay2 block protects the distribution_line2 block. The relay1 block protects the distribution_line1 block and also acts a back-up for the relay2 block. If a fault occurs on the distribution_line2 block and the relay2 block doesn't operate, the relay1 block operates after a specified time and isolates the system. To avoid tripping of the system, the relay1 and relay2 blocks operate such that only one relay operates at any given time. You can specify either time multiplier setting or the desired operating time of relay2 block.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMLSMDriveExample
EXAMPLETITLE: Three-Phase PMLSM Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the position in a three-phase permanent magnet linear synchronous machine (PMLSM) drive. The Control subsystem uses a PI-based cascade control structure with three control loops, an outer position control loop, a speed control loop and two inner current control loops. A controlled three-phase converter feeds the PMLSM. The simulation uses step references. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSGVoltageStabilizationExample
EXAMPLETITLE: IPMSG Voltage Stabilization
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control an Interior Permanent Magnet Synchronous Generator (IPMSG) based low voltage generator system for a hybrid electric vehicle (HEV). The Control subsystem includes a multi-rate PI-based cascade control structure which has an outer voltage-control loop and two inner current-control loops. The task scheduling in the Control subsystem is implemented as a Stateflow® state machine. The Scopes subsystem contains scopes that allow you to see the simulation results. An ideal angular velocity source, which represents a combustion engine, drives the IPMSG. The IPMSG supplies low-voltage power to loads R1 and R2. At t = 0.4 seconds, the switch closes, increasing the load.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMBatteryChargingExample
EXAMPLETITLE: Permanent Magnet Synchronous Generator Battery Charging
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use a permanent magnet synchronous generator (PMSG) to charge a battery. An ideal angular velocity source is used to maintain the rotor speed constant. The Control subsystem uses field oriented control to regulate the torque of the PMSG. The torque reference is obtained as a function of dc-link voltage. The initial battery state of charge is 25%. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMDriveExample
EXAMPLETITLE: Three-Phase PMSM Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Permanent Magnet Synchronous Machine (PMSM) in wye-wound and delta-wound configuration and an inverter sized for use in a typical hybrid vehicle. The inverter is connected directly to the vehicle battery, but you can also implement a DC-DC converter stage in between. You can use this model to design the PMSM controller, by selecting the architecture and gains to achieve the desired performance. To check the timing of IGBT turn-on and turn-off, you can replace the IGBT devices with the more detailed N-Channel IGBT block. For complete vehicle modeling, you can use the Motor & Drive (System Level) block to abstract the PMSM, inverter, and controller with an energy-based model. The Gmin resistor provides a very small conductance to ground that improves the numerical properties of the model when using a variable-step solver.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMDriveThermalExample
EXAMPLETITLE: Three-Phase PMSM Drive with Thermal Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Permanent Magnet Synchronous Machine (PMSM) and an inverter sized for use in a typical hybrid vehicle. The PMSM includes a thermal model and empirical iron losses. The inverter is connected directly to the vehicle battery, but you can also implement a DC-DC converter stage in between. You can use this model to design the PMSM controller, by selecting the architecture and the gains to achieve the desired performance. The initial temperature of the stator windings and rotor is set to 25 degrees Celsius. Ambient temperature is 27 degrees Celsius. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMFieldWeakeningControlExample
EXAMPLETITLE: PMSM Field-Weakening Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity above the nominal velocity in a permanent magnet synchronous machine (PMSM) based electrical-traction drive. A high-voltage battery feeds the PMSM through a controlled three-phase converter. The Control subsystem includes a multi-rate PI-based cascade control structure which has an outer angular-velocity-control loop and two inner current-control loops. The velocity controller generates a torque reference. A zero d-axis controller converts this torque reference to current references. A field weakening controller adjusts the current references to satisfy the voltage constraints above the nominal velocity. A Stateflow® state machine implements the task scheduling in the Control subsystem. During the 0.7 s simulation, the angular velocity demand ramps up from 0 to 4000 rpm. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMFromDatasheetExample
EXAMPLETITLE: PMSM Parameterization from Datasheet
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Two test harnesses that add confidence that a PMSM is correctly parameterized from a datasheet. It also calculates motor efficiency at rated speed and torque.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMIronLossesExample
EXAMPLETITLE: PMSM Iron Losses
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A test harness for a Permanent Magnet Synchronous Motor (PMSM) that validates that the iron losses are as expected. The open-circuit test validates the main flux path losses which are defined to be 500W due to hysteresis and 1500W due to eddy current losses. The short-circuit test validates the cross-tooth flux path losses which are defined to be 200W due to hysteresis and 600W due to eddy current losses.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMParameterizationExample
EXAMPLETITLE: Parameterize a Permanent Magnet Synchronous Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Estimate the back EMF and torque constants of a blackbox permanent magnet synchronous motor (PMSM) with an unknown flux linkage. You can use either the back EMF or torque constant to describe the flux linkage and parameterize a Simscape™ Electrical™ PMSM block. This parameterization allows you to accurately replicate the blackbox motor's behavior in simulation.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMPositionControlExample
EXAMPLETITLE: PMSM Position Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor position in a PMSM based electrical drive. An ideal torque source provides the load. The Control subsystem uses a cascade control structure with two control loops, an outer loop for position and speed control, and an inner loop for current control. The states for the estimator design are the electromagnetic torque, the mechanical angular velocity, the mechanical angular position, and the disturbance (load torque). An optimal state-feedback linear quadratic regulator controls the position and speed. A Luenberger observer estimates the load. PI controllers implements the inner current-control loop. A controlled three-phase inverter feeds the PMSM. The simulation uses step references. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMTractionDriveExample
EXAMPLETITLE: Three-Phase PMSM Traction Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a permanent magnet synchronous machine (PMSM) based electrical-traction drive. A high-voltage battery feeds the FEM-Parameterized PMSM block through a controlled three-phase converter. A Rotational Friction block provides the load. The position and speed information are obtained by using a high-fidelity resolver. The PMSM controller subsystem includes a cascade control structure which has an outer speed-control loop and two inner current-control loops. During the 0.25 seconds simulation, the rotor speed demand is ramped-up from 0 to 1000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: PMSMWithThermalExample
EXAMPLETITLE: PMSM with Thermal Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A nonlinear model of a PMSM with thermal dependency. The PMSM behavior is defined by tabulated nonlinear flux linkage data. Motor losses are turned into heat in the stator winding and rotor thermal ports.


COMPONENT: simscapeelectrical
EXAMPLENAME: PNPCharacteristicsExample
EXAMPLETITLE: PNP Bipolar Transistor Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generation of the Ic versus Vce curve for a PNP bipolar transistor. Define the vector of base currents and minimum and maximum collector-emitter voltages by double clicking on the block labeled 'Define Conditions (Ib and Vce)'. Run the tests and generate plots of the curves by clicking in the model on hyperlink 'plot curves'.


COMPONENT: simscapeelectrical
EXAMPLENAME: PWMCircuitUsing555TimerExample
EXAMPLETITLE: PWM Circuit Using 555 Timer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A pulse-width-modulated (PWM) output implemented using a 555 Timer in astable mode. The duty cycle is set by a potentiometer, P1. The potentiometer is controlled during run-time via Duty Cycle Control Knob. The scope shows the resultant output from the 555 Timer. To end the simulation, click on the Stop button.


COMPONENT: simscapeelectrical
EXAMPLENAME: PWMControlledDCMotorExample
EXAMPLETITLE: PWM-Controlled DC Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to use the Controlled PWM Voltage and H-Bridge blocks to control a motor. The DC Motor block uses manufacturer datasheet parameters, which specify the motor as delivering 10W mechanical power at 2500 rpm and no-load speed as 4000 rpm when run from a 12V DC supply. Hence if you set the PWM reference voltage to its maximum value of +5V, then the motor runs at 4000 rpm. If you set it to +2.5V, then it runs at approximately 2000 rpm. The Simulation mode parameter is set to Averaged for both the Controlled PWM Voltage and H-Bridge blocks, resulting in fast simulation. To validate the averaged behavior, change the Simulation mode parameter to PWM in both blocks.


COMPONENT: simscapeelectrical
EXAMPLENAME: ParameterizeMotorTorqueExample
EXAMPLETITLE: Torque Motor Parameterization
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How manufacturer data for torque as a function of current and angle can be used to model a torque motor. The datasheet shows linear characteristics for rotor angles between 20 and 70 degrees and for currents where saturation does not occur. Data in this range is used to parameterize the simplified model of the torque motor. Using MATLAB® to process the data points extracted from the datasheet, we can convert manufacturer data into motor parameters that are often obtained from finite element software.


COMPONENT: simscapeelectrical
EXAMPLENAME: PeltierCoolerExample
EXAMPLETITLE: Use of Peltier Device as Thermoelectric Cooler
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Peltier device working in cooling mode with a hot side temperature of 50 degC. In cooling mode, the Coefficient of Performance (COP) of the Peltier cell is equal to the total heat transferred through the Thermoelectric cooler (TEC) divided by the electric input power, COP = Qc/Pin.


COMPONENT: simscapeelectrical
EXAMPLENAME: PhaseLockedLoopExample
EXAMPLETITLE: Phase-Locked Loop
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to model a phase-locked loop. The charge pump and filter are modeled using discrete analog components whereas the oscillator is represented as behavioral component using the Simscape™ Electrical™ Voltage-Controlled Oscillator block. The D-type flip-flops in the phase detector are represented in a simplified form using Simulink® blocks to define the behavior, and electrical components are used just at the interface. Non-zero initial conditions are applied to C1 and C2 in order to start the VCO out of phase and test the tracking ability.


COMPONENT: simscapeelectrical
EXAMPLENAME: PhotovoltaicGeneratorExample
EXAMPLETITLE: Photovoltaic Generator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Create system-level model of a photovoltaic generator that can be used to simulate performance using historical irradiance data. Here the model is tested by varying the irradiance which approximates the effect of varying cloud cover. Power generation steps immediately following the irradiance change. Environmental temperature also varies during the test. The DC-AC converter efficiency is assumed to be a fixed 97 percent, this value having been determined from the SolarPowerInverter example model.


COMPONENT: simscapeelectrical
EXAMPLENAME: PhotovoltaicShadingExample
EXAMPLETITLE: Analysis of Solar Photovoltaic System Shading
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Implement shading effects in a solar photovoltaics (PV) plant or module. The solar plant block is created using Simscape™ language. Shading in a solar plant or module occurs when solar irradiance is not uniform across all solar PV modules or cells. You can use this example to study the effects of shading and PV cell junction temperature in a large interconnected solar plant or a single PV module. To improve the maximum power and to protect the solar panel from overheating, the Solar Plant block comprises bypass and blocking diodes. To define the shading, set the values of the Irradiance and Temperature parameters.


COMPONENT: simscapeelectrical
EXAMPLENAME: PiezoBenderEnergyHarvesterExample
EXAMPLETITLE: Piezo Bender Energy Harvester
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a device that harvests energy from a vibrating object by using a piezo bender. The device uses this energy to charge a battery and power a load.


COMPONENT: simscapeelectrical
EXAMPLENAME: PotentiometerDatasheetExample
EXAMPLETITLE: Digital Potentiometer Parameterized from Datasheet
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to model a digital potentiometer such as is used to control audio amplifiers from a digital circuit or microprocessor-controlled system. The model also shows how you can create your own custom blocks in order to extend the Simscape™ Electrical™ library.


COMPONENT: simscapeelectrical
EXAMPLENAME: PowerAssistedSteeringExample
EXAMPLETITLE: Electric Power Assisted Steering
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use a Permanent Magnet Synchronous Motor (PMSM) to amplify driver-applied force in a power-assisted automobile steering system.


COMPONENT: simscapeelectrical
EXAMPLENAME: PowerConverterFidelityExample
EXAMPLETITLE: Power Converter Model Fidelity Comparison
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use different levels of fidelity in power converters. The system contains three converters. The top converter uses ideal switches and protection diodes at a 10 us sample time. To yield accurate results even though the model is under sampled at 50 us sample time, the middle converter uses averaged switches with averaged pulses. To further increase the sample rate and to operate as an ideal averaged converter, the bottom converter uses averaged switches and modulation waveforms instead of gate pulses. The Control subsystem contains a three-phase, two-level PWM waveform generator. The Scopes subsystem contains Scope blocks that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: PowerLossAnalysisExample
EXAMPLETITLE: Power-Loss Analysis of a Three-Phase Rectifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Perform a power-loss analysis using the ee_getPowerLossSummary function and the power_dissipated variable. The Rectifier contains six Diode blocks. Diodes D1, D2, D4, and D5 each dissipate, on average, 52.19 W over the course of the 0.5 second simulation. Diodes D3 and D6 each dissipate an average of 52.22 W for the same time period because they experience a 340 W transient power-dissipation spike due to DC-load capacitor charging before t = 1e-3 s. For each diode, the average power dissipated when the rectifier is operating in steady-state, t = 0.4 to 0.5 s, is 52.19 W.


COMPONENT: simscapeelectrical
EXAMPLENAME: PowerSplitHEVExample
EXAMPLETITLE: Power Split Hybrid Vehicle Electrical Network
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The basic architecture of a power-split hybrid transmission. The planetary gear, along with the motor and generator, acts like a variable ratio gear. In this test, the vehicle accelerates from 15 m/s to 20 m/s, and then decelerates back to 15 m/s. The power management strategy uses just electrical power to perform the maneuver.


COMPONENT: simscapeelectrical
EXAMPLENAME: PushPullBuckCCMExample
EXAMPLETITLE: Push-Pull Buck Converter in Continuous Conduction Mode
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a push-pull buck converter. The current flowing through the inductor is never zero. The DC-DC converter therefore operates in continuous conduction mode (CCM). To convert and maintain the nominal output voltage, the PI Controller subsystem uses a simple integral control. During startup, the reference voltage ramps up to the desired output voltage.


COMPONENT: simscapeelectrical
EXAMPLENAME: PushPullBuckDCMExample
EXAMPLETITLE: Push-Pull Buck Converter in Discontinuous Conduction Mode
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the output voltage of a push-pull buck converter. The current flowing through the inductor reaches zero during the switch off cycle of the MOSFETs and therefore the DC-DC converter operates in Discontinuous Conduction Mode (DCM). This mode of conduction is mostly used for low-power applications. To convert and maintain the input DC voltage as a nominal output voltage, the PI Controller subsystem uses a simple integral control. During startup, the reference voltage is ramped up to the desired output voltage.


COMPONENT: simscapeelectrical
EXAMPLENAME: RFPowerAmplifierExample
EXAMPLETITLE: RF Power Amplifier Characterization Test Harness
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Defines a test harness to estimate a non-linear behavioral model of a RF power amplifier from a Simscape™ Electrical™ simulation model.


COMPONENT: simscapeelectrical
EXAMPLENAME: RFPowerAmplifierIVTestHarnessExample
EXAMPLETITLE: RF Transistor IV Characteristics Test Harness
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Defines a test harness to estimate the I-V characteristics of a bipolar transistor from a Simscape™ Electrical™ simulation model.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMControlExample
EXAMPLETITLE: Three-Phase Synchronous Machine Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control and initialize a Synchronous Machine (SM). The test circuit shows the SM operating as a generator. The terminal voltage is controlled using an AVR and the speed is controlled using a governor.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMDriveExample
EXAMPLETITLE: Three-Phase Synchronous Machine Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a Synchronous Machine (SM) based electrical drive. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and through a controlled two-quadrant chopper for the rotor winding. Use the model to design the SM controller, selecting architecture and gains to achieve desired performance. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMFluxFromMotorCADExample
EXAMPLETITLE: Import Synchronous Machine Flux Linkage Data from Motor-CAD
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Import a synchronous machine design from Motor-CAD into a Simscape™ simulation. A separate field winding generates a rotor magnetic field in the synchronous machine.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMGovernorDesignExample
EXAMPLETITLE: Three-Phase Synchronous Machine Governor Control Design
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Script shows how you can linearize a Simscape™ Electrical™ model to support control system stability analysis and design. It uses example model SMGovernorDesign.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMStateSpaceControlExample
EXAMPLETITLE: Synchronous Machine State-Space Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control currents in a synchronous machine (SM) based traction drive using state-space control. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and through a controlled two-quadrant chopper for the rotor winding. An ideal angular velocity source provides the load. The SM operates below the base speed. At each sample instant, the torque request is converted to relevant current references using the zero d-axis control approach. A state-feedback controller controls the currents in the rotor reference frame. A Luenberger observer obtains the velocity-dependent feedforward pre-control terms. The simulation uses several torque steps in both motor and generator modes. The task scheduling is implemented as a Stateflow® state machine. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMTorqueControlExample
EXAMPLETITLE: SM Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in a synchronous machine (SM) based electrical-traction drive. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and a controlled four quadrant chopper for the rotor winding. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to relevant current references. The current control is PI-based. The simulation uses several torque steps in both motor and generator modes. The task scheduling is implemented as a Stateflow® state machine. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SMVelocityControlExample
EXAMPLETITLE: SM Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in a synchronous machine (SM) based electrical-traction drive. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and a controlled four quadrant chopper for the rotor winding. An ideal torque source provides the load. The Control subsystem includes a multi-rate PI-based cascade control structure which has an outer angular-velocity-control loop and three inner current-control loops. The task scheduling in the Control subsystem is implemented as a Stateflow® state machine. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SRMCurrentControlExample
EXAMPLETITLE: Switched Reluctance Machine Current Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the current amplitude in a switched reluctance machine (SRM) based electrical drive. A DC voltage source feeds the SRM through a controlled three-arm bridge. An ideal angular velocity source provides the load. The converter turn-on and turn-off angles are maintained constant. A PI-based current controller regulates the current amplitude.


COMPONENT: simscapeelectrical
EXAMPLENAME: SRMSpeedControlExample
EXAMPLETITLE: Switched Reluctance Machine Speed Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a switched reluctance machine (SRM) based electrical drive. A DC voltage source feeds the SRM through a controlled three-arm bridge. The converter turn-on and turn-off angles are maintained constant.


COMPONENT: simscapeelectrical
EXAMPLENAME: SRMTorqueControlExample
EXAMPLETITLE: Synchronous Reluctance Machine Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in a synchronous reluctance machine (SynRM) based electrical drive. A high-voltage battery feeds the SynRM through a controlled three-phase converter. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to relevant current references using the maximum torque per Ampere strategy. The current control is PI-based. The simulation uses torque steps in both the motor and generator modes. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SRMVelocityControlExample
EXAMPLETITLE: Synchronous Reluctance Machine Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in a synchronous reluctance machine (SynRM) based electrical drive. A high-voltage battery feeds the SynRM through a controlled three-phase converter. An ideal torque source provides the load. The Control subsystem includes a multi-rate PI-based cascade control structure. The control structure has an outer angular-velocity-control loop and two inner current-control loops. The Visualization subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SRMWithFEMDataExample
EXAMPLETITLE: Switched Reluctance Motor Parameterized with FEM Data
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Build a model of a Switched Reluctance Motor (SRM). A custom Simscape™ composite component is used to construct the three stator pole pairs using the Simscape Electrical™ FEM-Parameterized Rotary Actuator as a base component. The states of the input pins (reverse, on/off) control the torque applied to the motor shaft.


COMPONENT: simscapeelectrical
EXAMPLENAME: SchottkyBarrierDiodeExample
EXAMPLETITLE: Schottky Barrier Diode Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generation of the current versus voltage curve for a Schottky barrier diode. Define the vector of temperatures for which to plot the characteristics by double clicking on the block labeled 'Define Temperatures for Tests'. Run the tests and plot the I-V curves by clicking in the model on the hyperlink 'plot curves'.


COMPONENT: simscapeelectrical
EXAMPLENAME: SiCMOSFETFromSPICEResultsExample
EXAMPLETITLE: SiC MOSFET Parameterization Using Simulation Results from SPICE
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generate lookup table data for a silicon carbide (SiC) metal-oxide-semiconductor field-effect transistor (MOSFET) from SPICE subcircuits by using the ee.spice.semiconductorSubcircuit2lookup function and parameterize an N-Channel MOSFET block in Simscape™ Electrical™.


COMPONENT: simscapeelectrical
EXAMPLENAME: SinglePhaseGridSolarPVExample
EXAMPLETITLE: Single-Phase Grid-Connected Solar Photovoltaic System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a rooftop single-phase grid-connected solar photovoltaic (PV) system. This example supports design decisions about the number of panels and the connection topology required to deliver the target power. The model represents a grid-connected rooftop solar PV system without an intermediate DC-DC converter. To parameterize the model, the example uses data from a solar panel manufacturer datasheet. Solar power is injected into the grid with unity power factor (UPF).


COMPONENT: simscapeelectrical
EXAMPLENAME: SinglePhaseIMDTCExample
EXAMPLETITLE: Single-Phase Asynchronous Machine Direct Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a single-phase asynchronous machine (ASM) based electrical drive using direct torque control. An ideal torque source provides the load. The Control subsystem uses a cascade control structure. An outer PI-based speed control loop provides the torque and flux references to the direct torque control algorithm from the inner loop. The single-phase ASM is fed by an H bridge. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SinglePhaseIMFOCExample
EXAMPLETITLE: Single-Phase Asynchronous Machine Field-Oriented Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in a single-phase asynchronous machine (ASM) based electrical drive using field-oriented control. An ideal torque source provides the load. The Control subsystem uses a PI-based cascade control structure with an outer speed control loop and two inner current control loops. The single-phase ASM is fed by an H bridge. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SinglePhaseInverterExample
EXAMPLETITLE: Single-Phase Inverter Current Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the current in a single-phase inverter system. The single-phase inverter uses averaged switches fed by modulation waveforms. This example is suitable for real-time evaluation on a dedicated real-time emulator.


COMPONENT: simscapeelectrical
EXAMPLENAME: SinglePhasePMSMControlExample
EXAMPLETITLE: Single-Phase PMSM Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in an electrical drive based on a single-phase permanent magnet synchronous motor by using open loop control. An ideal torque source provides the load. The Commutation subsystem uses a Hall signal to compute the gate signals. An H-Bridge feeds the SPPMSM.


COMPONENT: simscapeelectrical
EXAMPLENAME: SixPhasePMSMFromMotorCADExample
EXAMPLETITLE: Import a Dual Three-Phase PMSM from Motor-CAD
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Import a six-phase motor design from Motor-CAD into a Simscape™ simulation. This particular motor is configured with dual wye connections. The example sets out the derivation of the implementation and you can modify it to represent other winding configurations.


COMPONENT: simscapeelectrical
EXAMPLENAME: SixPhasePMSMTorqueExample
EXAMPLETITLE: Six-Phase PMSM Torque Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the torque in an electrical-traction drive based on a six-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through two controlled three-phase converters. The PMSM operates in both motoring and generating modes according to the load. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to a relevant q-axis current reference. The current control is PI-based. The simulation uses several torque steps in both motor and generator modes. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: SixPhasePMSMVelocityExample
EXAMPLETITLE: Six-Phase PMSM Velocity Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor angular velocity in an electrical-traction drive based on a six-phase permanent magnet synchronous machine (PMSM). A DC voltage source feeds the PMSM through two controlled three-phase converters. The PMSM operates in both motoring and generating modes according to the load. An ideal torque source provides the load. The Scopes subsystem contains scopes that allow you to see the simulation results. The Control subsystem includes a PI-based cascade control structure that has an outer angular-velocity-control loop and four inner current-control loops. During the one second simulation, the angular velocity demand is 0 rpm, 500 rpm, 2000 rpm, and then 3000 rpm.


COMPONENT: simscapeelectrical
EXAMPLENAME: SixPhaseSRMExample
EXAMPLETITLE: Six-Phase Switched Reluctance Machine Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rotor speed in an electrical drive based on a six-phase switched reluctance machine (SRM). A DC voltage source feeds the SRM through a controlled six-arm bridge. The converter turn-on and turn-off angles are constant.


COMPONENT: simscapeelectrical
EXAMPLENAME: SixPulseHarmonicsExample
EXAMPLETITLE: Harmonic Analysis of a Three-Phase Rectifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use functions which analyze Simscape™ logging data to get harmonic magnitudes, calculate total harmonic distortion percentage and plot harmonic magnitudes. The model to which this analysis is applied is of a three-phase rectifier. The functions demonstrated are:


COMPONENT: simscapeelectrical
EXAMPLENAME: SmartphoneBatteryChargingExample
EXAMPLETITLE: Smartphone Battery Charging
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Set up a constant current (CC) and constant voltage (CV) charging on a typical battery in a smartphone. A constant current starts charging the battery. When the battery voltage reaches a specific value, the constant voltage charging process starts.


COMPONENT: simscapeelectrical
EXAMPLENAME: SolarCellFromDatasheetExample
EXAMPLETITLE: Solar Cell Parameter Extraction from Data
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Optimization of the Solar Cell block's parameters to fit data defined over a range of different temperatures. It uses the MATLAB® optimization function fminsearch . Other products available for performing this type of parameter fitting with Simscape™ Electrical™ models are the Optimization Toolbox™ and Simulink® Design Optimization™. These products provide predefined functions to manipulate and analyze blocks using GUIs or a command line approach.


COMPONENT: simscapeelectrical
EXAMPLENAME: SolarCellPowerCurveExample
EXAMPLETITLE: Solar Cell Power Curve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Generate the power-voltage curve for a solar array. Understanding the power-voltage curve is important for inverter design. Ideally the solar array would always be operating at peak power given the irradiance level and panel temperature.


COMPONENT: simscapeelectrical
EXAMPLENAME: SolarPVACWithBatteryExample
EXAMPLETITLE: Stand-Alone Solar PV AC Power System with Battery Backup
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The design of a stand-alone solar photovoltaic (PV) AC power system with battery backup. In this example, you learn how to:


COMPONENT: simscapeelectrical
EXAMPLENAME: SolarPVDCWithBatteryExample
EXAMPLETITLE: Stand-Alone Solar PV DC Power System with Battery Backup
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The design of a stand-alone solar photovoltaic (PV) DC power system with battery backup. In this example, you learn how to:


COMPONENT: simscapeelectrical
EXAMPLENAME: SolarPVMPPTBoostExample
EXAMPLETITLE: Solar PV System with MPPT Using Boost Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The design of a boost converter for controlling the power output of a solar photovoltaic (PV) system. In this example, you learn how to:


COMPONENT: simscapeelectrical
EXAMPLENAME: SolarPanelValidationExample
EXAMPLETITLE: Solar Panel Parameterization Validation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a solar panel by using data from a manufacturer datasheet. This example uses the datasheet data to generate current-voltage and power-voltage curves for the solar panel. The power-voltage curve helps you identifying the peak power for a given irradiance level and panel cell temperature. This peak power is then useful when designing an inverter.


COMPONENT: simscapeelectrical
EXAMPLENAME: SolenoidFromFEMDataExample
EXAMPLETITLE: Solenoid Parameterized with FEM Data
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A limited travel solenoid with return spring. When unpowered, the spring holds the plunger at a distance of 0.1mm from the fully energized position. At 0.1 seconds, the solenoid is powered on and the displacement goes to zero. At 0.06s a force higher than the holding force is applied, and the plunger moves to its maximum travel of 0.2mm. The solenoid force and back emf characteristics are defined by the FEM-Parameterized Linear Actuator block. This block takes data in the format typically provided by a finite element magnetic field modeling tool. There are two parameterization options, one which works directly with flux data, and one which uses partial derivatives of flux with respect to current and displacement. The latter option is usually the better choice, it giving more accurate results for a given density of current and position data points. However, it requires more data pre-processing.


COMPONENT: simscapeelectrical
EXAMPLENAME: SolenoidHysteresisExample
EXAMPLETITLE: Custom Solenoid with Magnetic Hysteresis
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A limited travel solenoid with return spring. Magnetic hysteresis is modeled using the Reluctance with Hysteresis library block.


COMPONENT: simscapeelectrical
EXAMPLENAME: StepperMotorExample
EXAMPLETITLE: Stepper Motor with Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to use the Stepper Motor Driver and Stepper Motor blocks together to implement a controlled permanent magnet stepper motor. The model provides two controller options: one to control position and one to control speed. To change the controller type, right-click on the Controller block, select Variant->Override using-> and select Position or Speed.


COMPONENT: simscapeelectrical
EXAMPLENAME: StepperMotorAveragedModeExample
EXAMPLETITLE: Stepper Motor Averaged Mode
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The Stepper Motor simulating in Stepping and Averaged simulation modes. The purpose of Averaged mode is faster simulation for any loads that do not cause slip. To avoid incorrect interpretation of results, the stepper motor has an approximate detection of slip which can be set to generate a warning or an error.


COMPONENT: simscapeelectrical
EXAMPLENAME: StepperMotorPullInExample
EXAMPLETITLE: Stepper Motor Pull-in Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Parameterize and tune a stepper motor using manufacturer datasheet information and a test harness. The model is parameterized using numerical data extracted from a datasheet. The simulation generates pull-in torque characteristics that you can compare to a manufacturer-provided pull-in curve. To tune the stepper motor model, the example uses a test harness that varies the drive type and load parameters.


COMPONENT: simscapeelectrical
EXAMPLENAME: StepperMotorValidationExample
EXAMPLETITLE: Pre-Parameterized Stepper Motor Block Validation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Demonstrates and validates a set of predefined parameterizations that are supplied with the Simscape™ Electrical™ Stepper Motor block. These predefined parameterizations are determined from manufacturer datasheets.


COMPONENT: simscapeelectrical
EXAMPLENAME: StrainGaugeWheatstoneExample
EXAMPLETITLE: Strain Gauge and Wheatstone Bridge
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to model a strain gauge and measurement amplifier. The strain gauge forms one leg of a Wheatstone bridge, which is connected to a differential amplifier. A second op-amp is then used to both amplify and apply a low-pass filter to the measurement signal. The op-amps are modeled at a system level, with the user specifying parameters such as open-loop bandwidth, gain and maximum slew rate. In this circuit, the dynamics are primarily set by the low-pass filter. The op-amp bandwidth and maximum slew rate have little impact on the step response.


COMPONENT: simscapeelectrical
EXAMPLENAME: SupercapacitorBehaviorExample
EXAMPLETITLE: Supercapacitor Charging and Discharging Behavior
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The voltage output by a Supercapacitor block as it is charged and then discharged. To charge the Supercapacitor, a current of 100 mA is input to the Supercapacitor for 100 seconds. The Supercapacitor is then rested for one minute. For the next hour, to discharge the Supercapacitor, a load of 50 mA is stepped on for one second in every 50 seconds. The Supercapacitor is then rested until the end of the simulation. The scope displays the Supercapacitor charging/discharging current and voltage.


COMPONENT: simscapeelectrical
EXAMPLENAME: SupercapacitorFromDataExample
EXAMPLETITLE: Identify Supercapacitor Parameter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Identify the parameters of a supercapacitor. Instead of collecting voltage and current waveforms from a real supercapacitor, this example generates voltage and current waveforms by running a simulation of a supercapacitor using known parameter values. Then the example applies a parameter identification methodology [1] to the waveforms.


COMPONENT: simscapeelectrical
EXAMPLENAME: SwitchedCapacitorADCExample
EXAMPLETITLE: Switched Capacitor Analog to Digital Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How a sigma-delta ADC (analog to digital converter) uses sigma-delta modulation to convert an analog input signal into a digital output signal. The analog input to the sigma-delta ADC controls an oscillator that produces pulses of fixed voltage and duration, but with period between pulses being inversely proportional to the analog input. The oscillator pulses are integrated over a fixed time interval to give a digital representation of the analog input signal.


COMPONENT: simscapeelectrical
EXAMPLENAME: SwitchingAudioAmplifierExample
EXAMPLETITLE: Switching Audio Power Amplifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A switching audio power amplifier circuit. Switching audio power amplifiers are more efficient than conventional power amplifiers as switching devices are operating only in the fully-on and fully-off states. This audio power amplifier uses a 1MHz switching frequency and has a PI feedback controller to ensure that output voltage tracks the 2kHz and 2.5kHz sine wave inputs. The power spectrum is plotted in the Spectrum Analyzer, and can be used to inform selection of controller and filter parameters.


COMPONENT: simscapeelectrical
EXAMPLENAME: SynchronousJKFlipFlopExample
EXAMPLETITLE: Synchronous J-K Flip-Flop
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a J-K flip-flop from Simscape™ Electrical™ logic components. With the two switches in their default positions, both inputs to the flip-flop are set high so its output state toggles each time the clock signal goes low. Initial conditions are passed to the relevant NAND gates via the initialization commands of the block mask.


COMPONENT: simscapeelectrical
EXAMPLENAME: SystemLevelACDriveExample
EXAMPLETITLE: System-Level AC Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a system-level AC drive for an electric machine by using the AC-DC Converter (Three-Phase) block and Motor & Drive (System Level) block. The AC-DC converter represents a grid-side converter which provides a constant DC-link voltage. The Motor & Drive block acts as a generic AC electric machine with its DC-AC converter. This modeling approach provides fast system-level simulation without the switching events of the power converters.


COMPONENT: simscapeelectrical
EXAMPLENAME: TVSDiodeParameterizationExample
EXAMPLETITLE: TVS Diode Parameterization
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to parameterize the Simscape™ Electrical™ diode to represent a Transient Voltage Suppression (TVS) diode. This example is for a TVS diode suited to protecting automotive electronics from voltage transients associated with turning off inductive loads. To view the data extracted from the datasheet, on the Modeling tab, in the Setup section, click Model Settings > Model Properties. On the Callbacks tab, click PreLoadFcn.


COMPONENT: simscapeelectrical
EXAMPLENAME: TabulatedMOSFETExample
EXAMPLETITLE: Parameterize a Lookup Table-Based MOSFET from SPICE
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use the SPICE simulation results of a metal-oxide-semiconductor field-effect transistor (MOSFET) to set the parameter values of an N-Channel MOSFET (Lookup table-based) in Simscape™. Then, it compares the N-Channel MOSFET characteristics in Simscape with the SPICE netlist simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: TapChangingTransformerExample
EXAMPLETITLE: Tap-Changing Transformer for Automatic Voltage Regulation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use a single-phase tap-changing transformer to control the voltage across an RLC load. The system contains an AC voltage source that generates a 60 Hz sine wave (located on the left-hand side of the circuit). The root-mean-square value for the voltage generated by this source is 120 V (reference voltage).


COMPONENT: simscapeelectrical
EXAMPLENAME: TestHarnessIGBTExample
EXAMPLETITLE: Test Harness to Generate High-Power IGBT Device Characteristics
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Provides test harness for estimating switching loss for different parameters of a N-Channel IGBT block.


COMPONENT: simscapeelectrical
EXAMPLENAME: ThermistorControlledFanExample
EXAMPLETITLE: Thermistor-Controlled Fan
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How fundamental thermal, mechanical and electrical components can be used to model a thermistor-controlled fan. The heat-generating device starts producing 2 watts at time zero, and then at 40 seconds this increases to 20 watts. The thermistor therefore heats up, and its resistance decreases thereby increasing the voltage across the PWM reference pins. This increases the PWM frequency which in turn increases average motor current, and the fan speeds up. The additional fan speed increases the convective cooling of the device, moderating the temperature increase of the device.


COMPONENT: simscapeelectrical
EXAMPLENAME: ThreeLevelPWMGeneratorExample
EXAMPLETITLE: Three-Phase Three-Level PWM Generator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use the PWM Generator (Three-phase, Three-level) to control a Three-Level Converter. The upper and lower supply voltages are input to a Neutral point controller, which balances the DC-link capacitor voltages. Reference AC waveforms are used as inputs to the PWM Generator. There is one time scope for the controller waveforms.


COMPONENT: simscapeelectrical
EXAMPLENAME: ThreePhaseCycloconverterExample
EXAMPLETITLE: Three-Phase Bridge Cycloconverter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A three-phase bridge cycloconverter. The cycloconverter consists of 36 thyristors and has the capacity to lower the frequency of the input voltage. The Control subsystem implements the cycloconverter RMS voltage control. It also provides pulse generation for the firing of the thyristors. The Visualization subsystem contains scopes that allow you to see the simulation results. The simulation time, t, is 1 second. The load increases when Load1 switches on at t = 0.75 seconds.


COMPONENT: simscapeelectrical
EXAMPLENAME: ThreePhasePortTypesExample
EXAMPLETITLE: Comparison of Three-Phase Port Types
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A comparison of Composite three-phase ports versus Expanded three-phase ports. The first circuit shows a Voltage Source configured with a Composite three-phase port. A Phase Splitter block provides the interface to the Simscape™ foundation library electrical elements. The second circuit shows a Voltage Source configured with an Expanded three-phase port which can connect directly to the Simscape foundation library electrical elements. The Voltage Source can be changed from Composite to Expanded three-phase ports by use of the Modeling option mask parameter.


COMPONENT: simscapeelectrical
EXAMPLENAME: ThyristorStaticBehaviorExample
EXAMPLETITLE: Thyristor Static Behavior Validation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Validation of the static behavior of the Thyristor block against its mask values. Mask values are closely related to datasheet values, and the thyristor block uses these values to calculate the coefficients of the equations used to model it.


COMPONENT: simscapeelectrical
EXAMPLENAME: TotemPolePFCExample
EXAMPLETITLE: Totem-Pole PFC
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the rectified voltage in a totem-pole power factor correction (PFC) circuit. MOSFETs Q1 and Q2 form the 50 kHz fast switching leg. MOSFETs Q3 and Q4 form the line frequency slow switching leg. The control subsystem uses a PI-based cascade control structure. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: TransformerHysteresisExample
EXAMPLETITLE: Electrical Transformer with Hysteresis
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a custom transformer that exhibits hysteresis by using the Non Linear Reluctance block in a magnetic circuit. The transformer is rated for a 50W load and steps down from 120V to 12V rms. The magnetizing resistance Rm is modeled in the magnetic domain using an Eddy Loss block.


COMPONENT: simscapeelectrical
EXAMPLENAME: TriangleWaveGeneratorExample
EXAMPLETITLE: Triangle Wave Generator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An implementation of a triangle wave generator circuit using two op-amps. The first stage of the circuit is a comparator constructed from an op-amp. The output of the comparator is limited to about plus or minus 5 volts by the two zener diodes. The limits imposed by the zener diodes result in a square wave.


COMPONENT: simscapeelectrical
EXAMPLENAME: TwelvePulseRectifierExample
EXAMPLETITLE: Twelve-Pulse Thyristor Rectifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a twelve-pulse thyristor rectifier. Two thyristor converters are connected to a Wye-Delta-Wye transformer on the input. A Thyristor 12-Pulse Generator block generates the gate signals for the two converters.


COMPONENT: simscapeelectrical
EXAMPLENAME: TwoBusLoadflowExample
EXAMPLETITLE: 2-Bus Loadflow
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A model of a two-bus three-phase power system network. The model uses three instances of the Load Flow Source block from Simscape™ Electrical™, one configured to be the swing bus, one configured to be the PV bus, and one configured to be the PQ load. The PV bus regulates its output to be at a voltage of 1.025 times rated voltage and to deliver 80MW active power to the network. The Swing bus regulates voltage at the other end of the transmission line to be one times rated voltage, and it delivers the requisite power to the network so that overall active and reactive powers balance. The Simscape initialization solver determines the required internal initial voltage amplitudes and phases in both the PV bus and the Swing bus so as to start in steady state.


COMPONENT: simscapeelectrical
EXAMPLENAME: TwoLevelPWMGeneratorExample
EXAMPLETITLE: Three-Phase Two-Level PWM Generator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use the PWM Generator (Three-phase, Two-level) to control a Converter. The inputs to the PWM Generator are reference AC waveforms and a DC-link voltage of 400 V. There is one time scope for the controller waveforms.


COMPONENT: simscapeelectrical
EXAMPLENAME: TwoPhaseDCDCCurrentExample
EXAMPLETITLE: Two-Phase DC-DC Converter Current Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the current of a two-phase interleaved bidirectional DC-DC converter. The two-phase converter comprises two Bidirectional DC-DC Converter with ideal IGBTs. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. To reduce the ripple at the output port of the converter, the two phases are switched with the same duty ratio but with a relative phase shift of 180 degrees. The Scopes subsystem contains scopes that allow you to see the simulation results.


COMPONENT: simscapeelectrical
EXAMPLENAME: TwoWayDCDCCurrentControlExample
EXAMPLETITLE: Bidirectional DC-DC Converter Current Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the inductor current of a Bidirectional DC-DC Converter. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. The Bidirectional DC-DC Converter uses averaged switches. To achieve different levels of fidelity, you can use either modulation waveforms, averaged gate pulses, or gate pulses.


COMPONENT: simscapeelectrical
EXAMPLENAME: TwoWheelerOnboardChargerExample
EXAMPLETITLE: On-Board Charger for Two-Wheeler Electric Vehicle
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model an on-board charger for a two-wheeler vehicle by using an AC-DC converter and a DC-DC converter to achieve unity power factor (UPF) operation and constant current (CC) battery charging.


COMPONENT: simscapeelectrical
EXAMPLENAME: UnipolarStepperExample
EXAMPLETITLE: Unipolar Stepper Motor with Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How to use the Unipolar Stepper Motor Driver and Unipolar Stepper Motor blocks together to implement a controlled permanent magnet stepper motor. The model provides two controller options: one to control position and one to control speed. To change the controller type, right-click on the Controller block, select Variant->Override using-> and select Position or Speed.


COMPONENT: simscapeelectrical
EXAMPLENAME: UnipolarStepperAveragedExample
EXAMPLETITLE: Unipolar Stepper Motor Averaged Mode
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The Unipolar Stepper Motor simulating in Stepping and Averaged simulation modes. The purpose of Averaged mode is faster simulation for any loads that do not cause slip. To avoid incorrect interpretation of results, the stepper motor has an approximate detection of slip which can be set to generate a warning or an error.


COMPONENT: simscapeelectrical
EXAMPLENAME: VCOPiControlExample
EXAMPLETITLE: Voltage-Controlled Oscillator with PI Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A voltage-controlled oscillator with feedback control to regulate the output voltage. The oscillation frequency is controlled by the reverse bias voltage applied to the to the varactor diode. The model shows how behavioral and component-level modeling can be mixed when designing a circuit. Provided that the variable trans-conductance device has a fast dynamic response relative to the oscillation frequency, the implementation details are not important. Similarly, the PI controller is in abstracted form, and could either be implemented with op-amps, or in software.


COMPONENT: simscapeelectrical
EXAMPLENAME: VSCFLBExample
EXAMPLETITLE: Three-Phase Voltage-Sourced Converter (FLB)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a three-phase voltage-sourced converter that uses Fixed Low-side Bias (FLB) modulation. This modulation scheme minimizes the switching in the converter as at any given time one phase is not being pulse modulated. The trade-off is the need for narrower pulses for a given level of acceptable harmonics. The model can be used to support selection of suitable values for L, C and the pulse modulation scheme parameters.


COMPONENT: simscapeelectrical
EXAMPLENAME: VSCSinusoidalPWMExample
EXAMPLETITLE: Three-Phase Voltage-Sourced Converter (SPWM)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a three-phase voltage-sourced converter that uses Sinusoidal Pulse-Width Modulation (SPWM). This modulation scheme compares a reference sine wave with a higher-frequency repeating triangle wave in order to generate the pulses. The model can be used to support selection of suitable values for L, C and the pulse modulation scheme parameters.


COMPONENT: simscapeelectrical
EXAMPLENAME: ViennaRectifierControlExample
EXAMPLETITLE: Vienna Rectifier Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control a Vienna rectifier. The Vienna rectifier subsystem consists of three-phase legs. Each leg has one power switch and six power diodes. The Control subsystem implements a closed-loop control strategy for the Vienna rectifier using space-vector modulation. Total simulation time is 0.1 s. At time 0.1 s, the Vienna Rectifier is engaged. At times 0.4 s and 0.6 s, the load steps up on the DC side.


COMPONENT: simscapeelectrical
EXAMPLENAME: VoltageComparatorFromSPICEExample
EXAMPLETITLE: SPICE Conversion of a CMOS Voltage Comparator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A typical implementation of a CMOS voltage comparator and how you can convert a SPICE subcircuit to a Simscape™ component using the subcircuit2ssc function. You can use CMOS voltage comparators in analog to digital converter (ADC) or relaxation oscillator circuits.


COMPONENT: simscapeelectrical
EXAMPLENAME: VoltageStabilizerExample
EXAMPLETITLE: Power Converter Voltage Stabilizer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A voltage stabilizer circuit. It uses a full-wave rectifier, a single-wave inverter, and a buck-boost transformer to achieve voltage regulation.


COMPONENT: simscapeelectrical
EXAMPLENAME: BidirectionalDCDCVoltageControlExample
EXAMPLETITLE: Voltage Control in a Bidirectional DC-DC Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Control the voltage of a DC bus connected to a load, a current source, and a battery with an isolated converter.


COMPONENT: simscapeelectrical
EXAMPLENAME: ImportInfineonIGBTPartExample
EXAMPLETITLE: Import Infineon XML Parts Into Simscape IGBT and Diode Blocks
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Automatically apply parameterizations from Infineon datasheets to tabulated IGBT (Ideal, Switching) and Diode blocks in Simscape™ Electrical™.


COMPONENT: simscapeelectrical
EXAMPLENAME: VoltageSourceConverterHVDCTransExample
EXAMPLETITLE: High-Voltage, Direct-Current Transmission Using Voltage Source Converters
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Models a high-voltage, direct-current (HVDC) transmission system using voltage source converters (VSCs).


COMPONENT: simscapeelectrical
EXAMPLENAME: UltracapacitorConverterExample
EXAMPLETITLE: Ultracapacitor with Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use a DC-DC converter to maintain a constant load voltage when drawing power from an ultracapacitor. The converter supplies power to the load and the capacitor voltage drops. The protection circuit disconnects the load when the capacitor voltage drops below a threshold value of 4V. At 10 seconds, the generator turns on, supplies power to the load and charges back the capacitor.


COMPONENT: simscapeelectrical
EXAMPLENAME: MOSFETFromSPICEExample
EXAMPLETITLE: SPICE Conversion of a MOSFET Subcircuit and Validation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Convert a metal-oxide-semiconductor field-effect transistor (MOSFET) subcircuit into an equivalent Simscape™ component and compare the Spice and Simscape plots for some standard MOSFET characteristics, namely Id versus Vgs, Id versus Vds, Qiss/ Gate charge, Qoss/ Output charge, and Breakdown voltage. The subcircuit2ssc function converts all the subcircuit components inside a SPICE netlist file into one or more equivalent Simscape files.


COMPONENT: simscapeelectrical
EXAMPLENAME: FaultedPMSMExample
EXAMPLETITLE: Faulted PMSM
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a faulted permanent magnet synchronous motor (PMSM) using Simscape™ Electrical™. Normally when modeling a PMSM, you can represent each winding as a single entity with associated inductance, induced back electromotive force (EMF), and mutual inductive coupling to adjacent windings. However, when a winding fault occurs, the single entity assumption breaks down. To correctly capture the resulting dynamics, you have to model the motor at a winding slot level. This requires modeling in the magnetic domain.


COMPONENT: simscapeelectrical
EXAMPLENAME: ConstantPowerLoadExample
EXAMPLETITLE: Model Constant Power Consumption with Varying AC Voltage Supply
PRODUCT: MATLAB;Simscape Electrical;Simscape;Simulink
DESCRIPTION:
Model constant power consumption using the Constant Power Load block in an AC circuit with varying voltage controlled by a Tap-Changing Transformer block.


COMPONENT: simscapeelectrical
EXAMPLENAME: ThyristorDynamicBehaviorExample
EXAMPLETITLE: Thyristor Dynamic Behavior Validation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Validation of the dynamic behavior of the Thyristor block against its mask values. Mask values are closely related to datasheet values, and the Thyristor block uses these values to calculate the coefficients of the equations used to model it. Double-click on each of the test subsystems for further information on the tests.


COMPONENT: simscapeelectrical
EXAMPLENAME: StaticSynchronousCompensatorExample
EXAMPLETITLE: Model Static Synchronous Compensator Using Voltage Source Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Models a hybrid var compensator that includes a static synchronous compensator (STATCOM) and a thyristor-switched capacitor (TSC).


COMPONENT: simscapeelectrical
EXAMPLENAME: StaticVarCompensatorExample
EXAMPLETITLE: Model Static Var Compensator Using Thyristor-Switched Capacitor and Thyristor-Controlled Reactor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Models a static var compensator (SVC) using thyristor-switched capacitors (TSC) and a thyristor-controlled reactor (TCR).


COMPONENT: simscapeelectrical
EXAMPLENAME: CurrentLimiterVariableAsymmetricExample
EXAMPLETITLE: Configure Current Limiter with Variable Asymmetric Limits
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Implement a current limiter device with variable asymmetric limits using the Current Limiter block in Simscape™ Electrical™.


COMPONENT: simscapeelectrical
EXAMPLENAME: SepicVoltageControlExample
EXAMPLETITLE: SEPIC Voltage Control
PRODUCT: MATLAB;Simulink;Simscape Electrical
DESCRIPTION:
Control the output voltage of a single-ended primary-inductor converter (SEPIC). The SEPIC is a form of DC-DC converter designed to deliver a regulated positive output voltage, regardless of whether the input voltage is higher, equal to, or lower than the intended output voltage. The Control subsystem adjusts the duty cycle of the semiconductor switch to regulate the output of the SEPIC. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. The input voltage is constant throughout the simulation. A resistor provides the load for the system. The total simulation time is 0.1 seconds.


COMPONENT: simscapeelectrical
EXAMPLENAME: PowerConverterLossesExample
EXAMPLETITLE: Calculate Losses in a Power Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Calculate the losses in a power converter using the ee_getPowerLossSummary function and the power_dissipated variable. The power converter contains six Diode blocks. Diodes D1, D2, D4, and D5 each loose, on average, 52.19 W over the course of the 0.5 second simulation. Diodes D3 and D6 each loose an average of 52.22 W for the same time period because they experience a 340 W transient power-dissipation spike due to DC-load capacitor charging before t = 1e-3 s. For each diode, the average power loss when the power converter is operating in steady-state, t = 0.4 to 0.5 s, is 52.19 W.


COMPONENT: simscapeelectrical
EXAMPLENAME: BuckConverterExample
EXAMPLETITLE: Buck Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Model a switching power supply that converts a 30V DC supply into a regulated 15V DC supply. Use this model to size the inductance L and the smoothing capacitor C and to design the feedback controller. Select between continuous and discrete controllers to explore the impact of the discretization.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: InductionMotorDriveFOCLowAndHighFidelityExample
EXAMPLETITLE: AC3 - Comparison Between Detailed and Simplified Models
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The AC3 detailed model and the AC3 average model during speed regulation. The comparison is performed for normal condition and for inverter saturation condition.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SelfControlledSMDriveLowAndHighFidelityExample
EXAMPLETITLE: AC5 - Comparison Between Detailed and Simplified Models
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The AC5 detailed model and the AC5 average model during speed regulation. The comparison is performed for normal condition and for inverter-rectifier saturation condition.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: PMSMDriveLowAndHighFidelityExample
EXAMPLETITLE: AC6 - Comparison Between Detailed and Simplified Models
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The AC6 detailed model and the AC6 average model during speed regulation. The comparison is performed for normal condition and for inverter saturation condition.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: BrushlessDCMotorDriveLowAndHighFidelityExample
EXAMPLETITLE: AC7 - Comparison Between Detailed and Simplified Models
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The AC7 detailed model and the AC7 average model during speed regulation. The comparison is performed for normal condition and for inverter saturation condition.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: Rectifier1Phase4QuadrantExample
EXAMPLETITLE: DC2 - Four-Quadrant Single-Phase Rectifier 5 HP DC Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The DC2 four-quadrant single-phase rectifier DC drive with circulating current during speed regulation.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: Rectifier3Phase4QuadrantExample
EXAMPLETITLE: DC4 - Four-Quadrant Three-Phase Rectifier 200 HP DC Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The DC4 four-quadrant three-phase rectifier DC drive with circulating current during torque regulation.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: AircraftPowerDistributionExample
EXAMPLETITLE: Aircraft Electrical Power Generation and Distribution
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An aircraft electrical power generation and distribution system. The AC power frequency is variable and depends of the engine speed


COMPONENT: simscapeelectricalsps
EXAMPLENAME: FuelCellStackExample
EXAMPLETITLE: 6 kW 45 Vdc Fuel Cell Stack
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The Proton Exchange Membrane (PEM) Fuel Cell Stack model feeding an average value 100Vdc DC/DC converter.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: GearSpeedReducerExample
EXAMPLETITLE: Gear Speed Reducer (Simscape model)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Simscape™ model representing a gear speed reducer device connected between a high-speed shaft and a low-speed shaft.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SinglePoleLineReclosingExample
EXAMPLETITLE: Single-Pole Reclosing of a Three-Phase Line
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of three-phase blocks to study phase-to-ground fault and single-pole reclosing of a 735-kV transmission line.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: ProgrammableSourcewithPLLExample
EXAMPLETITLE: Three-Phase Programmable Source, PLL, Voltage and Power Measurement
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the 3-Phase Programmable Voltage Source, PLL and Variable-Frequency Positive-Sequence Voltage and Power Measurement blocks.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SeriesCompensatedNetworkExample
EXAMPLETITLE: Three-Phase Series Compensated Network
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of three-phase blocks to study transients on a series-compensated 735-kV transmission system


COMPONENT: simscapeelectricalsps
EXAMPLENAME: ProgrammableSourcewithSequenceAnalyzerExample
EXAMPLETITLE: Three-Phase Programmable Source, V-I Measurement and Sequence Analyzer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the 3-Phase Programmable Voltage Source, 3-Phase V-I Measurement, and Sequence Analyzer blocks.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: GTOConverterExample
EXAMPLETITLE: Three-Phase 48-Pulse GTO Converter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of three-level converters and zig-zag phase-shifting transformers in a 48-pulse square-wave GTO converter.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: FivePhasePMSMExample
EXAMPLETITLE: Five-Phase Permanent Magnet Synchronous Machine
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the Five-Phase PMSM and the Three-Phase PMSM in a closed-loop speed and current control on two 4.4 kW industrial motors..


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SwitchingFunctionConverterExample
EXAMPLETITLE: Switching Function Converter Controlled by Averaged Firing Pulses
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The advantages of power electronics converters that can be simulated using one of four selectable modeling techniques


COMPONENT: simscapeelectricalsps
EXAMPLENAME: FiveLimbCoreTransformerExample
EXAMPLETITLE: Three-Phase Five-Limb (Shell-Type) Three-Winding Transformer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Illustrates saturation in a Five-Limb Shell-Type transformer and compares the Specialized Power Systems model with a Simscape-based physical model.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: FrequencyMeasurementExample
EXAMPLETITLE: Performance of Frequency Measurement (Phasor)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of two Frequency (Phasor) blocks to measure the frequency variation in a network following a line outage.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: STATCOMTransmissionSystemExample
EXAMPLETITLE: MMC-STATCOM Connected to a 735-kV Transmission System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Demonstrates the operation of a 50 MVA, MMC STATCOM (22 power modules per arm) connected to a 735 kV grid.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: HVDCMMCInterconnectionExample
EXAMPLETITLE: HVDC-MMC Interconnection (1000-MW, +/- 320 kV)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A model of a High Voltage Direct Current (HVDC) interconnection using Voltage-Sourced Converters (VSC) based on the Modular Multi- level Converter (MMC) technology. The simulation is optimized by the use of an aggregate MMC model.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: HBridgeMotorDriveExample
EXAMPLETITLE: Speed Control of a DC Motor Using BJT H-Bridge
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The simulation of an H-bridge used to generate a chopped voltage and to control the speed of a DC motor.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: FlickermeterStatisticalAnalysisExample
EXAMPLETITLE: Flickermeter Statistical Analysis Module
PRODUCT: Control System Toolbox;MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A method to compute short-term flicker severity of a phase-to-ground voltage taken from one feeder of a given remote community.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: LoadFlow29BusNetworkExample
EXAMPLETITLE: Initializing a 29-Bus, 7-Power Plant Network with the Load Flow Tool of Powergui
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the Load Flow tool of Powergui to initialize a 29-bus 735 kV network with detailed modeling of power plants using hydraulic turbines, speed regulation, excitation systems and power system stabilizers.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: LoadFlow5BusNetworkExample
EXAMPLETITLE: Initializing a 5-Bus Network with the Load Flow Tool of Powergui
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the Load Flow tool of Powergui to initialize a simple 5-bus network consisting of a wind farm connected to a 25-kV distribution feeder and exporting power to a 120 kV network.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: LineImpedanceModulatorExample
EXAMPLETITLE: Power Flow Control and Line Deicing Using a Bundle-Controlled Line Impedance Modulator (LIM)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
How power flow control and deicing of a transmission line could be implemented using the Line Impedance Modulator (LIM) technology.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: OLTCPhaseShiftingTransformerExample
EXAMPLETITLE: Delta-Hexagonal Phase Shifting Transformer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The operation of two models of delta-hexagonal Phase Shifting Transformer (PST) using On Load Tap Changers (OLTC).


COMPONENT: simscapeelectricalsps
EXAMPLENAME: TransformerlessPVArrayExample
EXAMPLETITLE: Single-Phase, 240 Vrms, 3500 W Transformerless Grid-Connected PV Array
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The operation of a typical transformerless photovoltaic (PV) residential system connected to the electrical utility grid.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: PVArrayGridAverageModelExample
EXAMPLETITLE: Average Model of a 100-kW Grid-Connected PV Array
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
An average model of a 100-kW array connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level VSC.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: PVArrayGridExample
EXAMPLETITLE: Detailed Model of a 100-kW Grid-Connected PV Array
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A detailed model of a 100-kW array connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level VSC.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SimulinkInterfaceExample
EXAMPLETITLE: Interfacing Simulink Models with Simscape Electrical Specialized Power Systems
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The interfaces between Simulink® and Simscape™ Electrical™ Specialized Power Systems to design a custom synchronous machine model. It also shows an example of a customized Synchronous Machine block


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SynchronousGeneratorwithSimscapeExample
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION: A machine mechanical coupling of an excitation system using Simscape™ mechanical rotational ports.
EXAMPLETITLE:
Mechanical Coupling of Synchronous Generator with Exciter System Using the Simscape Mechanical Rotational Port


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SimscapeInterfaceExample
EXAMPLETITLE: Interfacing Simscape Models with Simscape Electrical Specialized Power Systems
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The interface between Simscape™ and Simscape Electrical™ Specialized Power Systems to design a breaker model.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SwitchedReluctanceMotorExample
EXAMPLETITLE: Switched Reluctance Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A current-controlled 60-kW 6/4 SRM drive using the SRM specific model based on measured magnetization curves. 8/6 and 10/8 preset models are also presented with same control strategy.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: ThreeLimbCoreTransformerExample
EXAMPLETITLE: Three-Phase Three-Limb (Core-Type) Two-Winding Transformer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Illustrates saturation in a Three-Limb Core-Type transformer and compares the Simscape™ Electrical™ Specialized Power Systems model with a Simscape-based physical model.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: VehicletoGridSystemExample
EXAMPLETITLE: 24-hour Simulation of a Vehicle-to-Grid (V2G) System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A vehicle-to-grid system used to regulate the frequency on a microgrid when events occur during a full day. The phasor mode of Specialized Power Systems allows a fast simulation of a 24 hour scenario.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: ActiveHarmonicFilterExample
EXAMPLETITLE: Three-Phase Active Harmonic Filter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of a shunt active harmonic filter (AHF) to minimize the harmonic content propagated to the source from a non-linear load.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: BrushlessDCMotorExample
EXAMPLETITLE: Brushless DC Motor Fed by Six-Step Inverter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of a Six-Step Switch-on mode for a trapezoidal PMSM motor rated 1kW, 3000 rpm and speed regulated.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: BuckConverterInterpolationExample
EXAMPLETITLE: Increased Accuracy and Simulation Speed Using Interpolation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Use the interpolation method on the powergui to preserve model accuracy for simulations with larger time steps.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: CoupledCablesExample
EXAMPLETITLE: Four Coupled 66-kV Cables
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Compares the steady state and transient responses of two different cable designs whose R L C parameters are calculated using the Power Cable Parameters app.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SteadyStateAnalysisExample
EXAMPLETITLE: Steady-State Analysis of a Linear Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the Powergui and Impedance Measurement blocks to analyze the steady-state operation of a linear electrical circuit


COMPONENT: simscapeelectricalsps
EXAMPLENAME: FlickermeterExample
EXAMPLETITLE: Flickermeter on a Distribution STATCOM
PRODUCT: Control System Toolbox;MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A flickermeter model designed according to functional specifications of the international standard IEC 6100-4-15 [1].


COMPONENT: simscapeelectricalsps
EXAMPLENAME: HVDCTransmissionSystemExample
EXAMPLETITLE: Simple 6-Pulse HVDC Transmission System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The steady-state and transient performance of a simple 500 MW (250 kV-2kA) HVDC transmission system.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: HVDCThyristorBasedExample
EXAMPLETITLE: Thyristor-Based HVDC Transmission System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The steady-state and transient performance of a 12-pulse, 1000 MW (500 kV-2kA) 50/60 Hz HVDC transmission system.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: EmergencyDieselGeneratorExample
EXAMPLETITLE: Emergency Diesel-Generator and Asynchronous Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The Machine Load Flow tool of Powergui block to initialize an induction motor/diesel-generator system.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SmallScaleMicroGridExample
EXAMPLETITLE: Simplified Model of a Small Scale Micro-Grid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The behavior of a simplified model of a small-scale micro grid during 24 hours on a typical day. The model uses Phasor solution provided by Specialized Power Systems in order to accelerate simulation speed.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: TwoLevelPWMConverterExample
EXAMPLETITLE: Two-Level PWM Converter and Dead Time
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The impact of dead time on harmonic distortion of a two-level converter used in a 50 kW microturbine.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SinglePhaseLineExample
EXAMPLETITLE: Time and Frequency Domain Testing of a Single Phase Line
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Time domain and frequency domain performance of distributed parameter line model and PI section line model.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: BrushlessDCMotorwithCurrentControlExample
EXAMPLETITLE: Speed Regulation of Brushless DC Motor Drive Using a Hysteresis-Based Current Controller
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The speed regulation of a brushless DC motor (BLDC) drive using a hysteresis-based current controller.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: BrushlessDCMotorwithSixStepInverterExample
EXAMPLETITLE: Speed Regulation of a Brushless DC Motor Drive Using a Variable DC Link Six-Step Inverter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Demonstrates the speed regulation of a brushless DC (BLDC) motor drive using a variable DC link six-step inverter.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: InductionMotorDirectTorqueControlExample
EXAMPLETITLE: Direct Torque Control of an Induction Motor Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Demonstrates the speed regulation of a variable-frequency AC drive using a hysteresis-based direct torque control (DTC) technique.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: InductionMotorDirectTorqueControlwithSVMExample
EXAMPLETITLE: Direct Torque Control with Space Vector Modulation of an Induction Motor Drive
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Demonstrates the speed regulation of a variable-frequency AC drive using the direct torque control (DTC) technique with space vector modulation.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: InteriorPMSMFieldOrientedControlExample
EXAMPLETITLE: Field-Oriented Control of an Interior Permanent Magnet Synchronous Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The wide-speed operation of an interior permanent magnet synchronous motor (IPMSM) drive. The drive uses a field-oriented control system with maximum torque per ampere (MTPA) and field-weakening control strategies.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SurfaceMountedPMSMFieldOrientedControlExample
EXAMPLETITLE: Field-Oriented Control of a Surface Mounted Permanent Magnet Synchronous Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The speed regulation of a surface-mounted permanent magnet synchronous motor (PMSM) using field-oriented control (FOC).


COMPONENT: simscapeelectricalsps
EXAMPLENAME: ThreePhasePMSMExample
EXAMPLETITLE: Permanent Magnet Synchronous Machine
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The Permanent Magnet Synchronous Machine in a closed-loop speed and current control on a 1.1 kW, 3000 rpm industrial motor.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SinglePhaseASMExample
EXAMPLETITLE: Single-Phase Asynchronous Machine
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The operation of a single phase asynchronous motor in Capacitor-Start and Capacitor-Start-Run operation modes.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: STATCOMPhasorModelExample
EXAMPLETITLE: STATCOM Phasor Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A Static Synchronous Compensator (STATCOM) used for midpoint voltage regulation on a 500-kV transmission line.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: TransientStabilityofMultiMachineSystemExample
EXAMPLETITLE: Static Var Compensator (SVC) and Power System Stabilizers (PSS)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the phasor solution for transient stability analysis of multi-machine systems. It analyzes transient stability of a two-machine transmission system with Power System Stabilizers (PSS) and Static Var Compensator (SVC).


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SVPWMConverterExample
EXAMPLETITLE: Space-Vector PWM modulator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The open-loop speed control of an induction motor using constant V/Hz principle and a space vector (SV) PWM technique.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: SwitchingLossCalculationExample
EXAMPLETITLE: Loss Calculation in a Three-Phase 3-Level Inverter
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Compute switching losses in a three-phase 3-level inverter, combining Specialized Power Systems and Simscape blocks.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: DistributionTransformerExample
EXAMPLETITLE: Three-Winding Distribution Transformer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The use of the linear transformer to simulate a three-winding distribution transformer rated 75 kVA - 14400/120/120 V.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: WindFarmDFIGPhasorModelExample
EXAMPLETITLE: Wind Farm - Doubly-Fed Induction Generator (DFIG) Phasor Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Phasor simulation of a 9 MW wind farm using Doubly-Fed Induction Generator (DFIG) driven by a wind turbine.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: WindFarmDFIGAverageModelExample
EXAMPLETITLE: Wind Farm - Doubly-Fed Induction Generator (DFIG) Average Model
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A 9 MW wind farm using an average model of a Doubly-Fed Induction Generator (DFIG) driven by a wind turbine.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: WindFarmDFIGExample
EXAMPLETITLE: Wind Farm - Doubly-Fed Induction Generator (DFIG)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
A 9 MW wind farm using a detailed model of a Doubly-Fed Induction Generator (DFIG) driven by a wind turbine.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: WindFarmInductionGeneratorsExample
EXAMPLETITLE: Wind Farm - Induction Generator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
Phasor simulation of a 9-MW wind farm using Induction Generators (IG) driven by variable-pitch wind turbines.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: ThreeLevelNPCConverterwithSVPWMExample
EXAMPLETITLE: Three-Level NPC Inverter Using Space-Vector PWM with Neutral-Point Voltage Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The operation of a 2-MVA, 3-Level NPC inverter using Space-Vector Pulse-Width-Modulation (SVPWM) technique with neutral-point voltage control.


COMPONENT: simscapeelectricalsps
EXAMPLENAME: PowerConvertersExample
EXAMPLETITLE: Power Converters Modeling Techniques
PRODUCT: MATLAB;Simulink;Simscape;Simscape Electrical
DESCRIPTION:
The operation of several types of power electronics converters that can be simulated using one of four selectable modeling techniques


COMPONENT: simscapeelectricalspsslrt
EXAMPLENAME: MMCSTATCOMHybridModelExample
EXAMPLETITLE: MMC-STATCOM Model running in Real-Time (Hybrid)
PRODUCT: MATLAB;Simulink;Simscape;Simulink Real-Time;Simscape Electrical
DESCRIPTION:
Demonstrates the use of Phasor-to-Discrete Interface and Discrete-to-Phasor Interface blocks to run the MMC Grid STATCOM example in real-time


COMPONENT: simscapeelectricalspsslrt
EXAMPLENAME: DecoupledPVArrayGridExample
EXAMPLETITLE: Running a Grid-Connected PV Array Model in Real-Time Using Decoupling Line Blocks
PRODUCT: MATLAB;Simulink;Simscape;Simulink Real-Time;Simscape Electrical
DESCRIPTION:
Simulate a grid-connected PV array model in real-time and how Decoupling Line blocks are used to avoid CPU overload by dividing the model into two concurrent tasks on a Speedgoat real-time target machine.


COMPONENT: simscapefluids
EXAMPLENAME: SingleActingCylinderWith3WayValveExample
EXAMPLETITLE: Single-Acting Cylinder with 3-Way Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A single-acting hydraulic cylinder controlled by an 3-way directional valve. It drives a load consisting of a mass, viscous friction, and preloaded spring. The pump unit is assumed to be powerful enough to maintain constant pressure at the valve inlet.


COMPONENT: simscapefluids
EXAMPLENAME: ActuatorWithPressureCompensatedPumpExample
EXAMPLETITLE: Closed-Loop Actuator with Variable-Displacement Pressure-Compensated Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A closed-loop actuator that consists of a proportional 4-way directional valve driving a double-acting hydraulic cylinder. The cylinder drives a load consisting of a mass, viscous and Coulomb friction, constant force, and a spring. The actuator is powered by a variable-displacement, pressure-compensated pump, driven by a constant velocity motor. Pipelines between the valve, cylinder, pump, and the tank are modeled using the Hydraulic Pipeline blocks.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicActuatorModelForRealTimeSimulationExample
EXAMPLETITLE: Closed-Loop Hydraulic Actuator Model for Real-Time Simulation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The actuator consists of a proportional 4-way directional valve driving a double-acting hydraulic cylinder. The cylinder drives a load consisting of a mass, viscous and Coulomb friction, constant force, and a spring. The actuator is powered by a variable-displacement, pressure-compensated pump, driven by a constant velocity motor. Pipelines between the valve, cylinder, pump, and the tank are simulated with the Hydraulic Pipeline blocks.


COMPONENT: simscapefluids
EXAMPLENAME: ClosedLoopActuatorWith2WayValveExample
EXAMPLETITLE: Closed-Loop Actuator with 2-Way Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The use of a 2-way valve in a closed-loop circuit together with a double-acting hydraulic cylinder, fixed orifice, mass, spring, damper, and control blocks.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicDifferentialCylinderWith3WayValveExample
EXAMPLETITLE: Hydraulic Differential Cylinder with 3-Way Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The use of a 3-way valve to control the motion of a hydraulic differential cylinder. The valve connects cylinder port B either to tank or to cylinder chamber A through the fixed orifice. The cylinder extends when its ports are both connected to the pressure source due to difference in piston areas. Orifice B controls the extension speed. The cylinder retracts if chamber B is connected to tank.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicCylinderWithFlexibleMountExample
EXAMPLETITLE: Hydraulic Cylinder with Flexible Mount
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The use of a double-acting hydraulic cylinder. The clamping structure is simulated with the spring and damper installed between the cylinder case and the reference. The cylinder performs forward and return strokes caused by the change of pressures at ports A and B. The cylinder load consists of inertia, viscous friction, and constant opposing load of 400 N.


COMPONENT: simscapefluids
EXAMPLENAME: ClosedCircuitHydraulicActuatorHExample
EXAMPLETITLE: Closed-Circuit Hydraulic Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A closed-circuit hydraulic actuator driven by a variable-speed motor. The actuator is arranged as a closed system with two replenishment valves (check valves) and a spring accumulator serving as a replenishment reservoir. The motor velocity is controlled by the difference between the commanded and actual actuator position. The actuator acts against a spring, damper, and a time-varying load.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicActuatorWithCounterbalanceValveExample
EXAMPLETITLE: Hydraulic Actuator with Counterbalance Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The model consists of a double-acting hydraulic cylinder controlled by an open-center 4-way directional valve and a power unit built of a flow rate source and a pressure-relief valve. The cylinder is loaded with an active force in 10000 N trying to extend the rod. In other words, the cylinder experiences an overriding load while extending. To hold the rod in place while the directional valve is in the neutral position and prevent losing control of the cylinder extension, the counterbalance valve is used. The valve controls the return flow from port A. The valve pilot port P is connected to cylinder port B, thus making it impossible for the cylinder to move until pressure at port B builds up to certain level.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicActuatorWithDualCounterbalanceValvesHExample
EXAMPLETITLE: Hydraulic Actuator with Dual Counterbalance Valves
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An actuator built of a double-acting hydraulic cylinder, directional valve, flow control, block of counterbalance valves, power unit, and a control unit.


COMPONENT: simscapefluids
EXAMPLENAME: CustomHydraulicCylinderExample
EXAMPLETITLE: Custom Hydraulic Cylinder
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A custom hydraulic cylinder model that omits the effect of fluid compressibility in the cylinder chambers. The double-acting cylinder connected to a 4-way valve to model a simple closed-loop actuator.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicCylinderWithTwoChamberSnubbersExample
EXAMPLETITLE: Hydraulic Cylinder with Two-Chamber Snubbers
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A hydraulic cylinder equipped with a custom model of snubbers (cushions) on both sides of the cylinder. The snubbers are implemented as two-chamber cushions separated by the cushioning bush as the piston comes close to the end of the stroke. The cushioning provides hydraulic braking as the cylinder reaches the end of its stroke, absorbing some of the kinetic energy of the system before the piston reaches the end stop.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicActuatorWithTelescopicCylinderExample
EXAMPLETITLE: Hydraulic Actuator with Telescopic Cylinder
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An actuator built around a telescopic hydraulic cylinder, which is equipped with three rods interacting with each other through hard stops. The effective areas of the rods are set to 20, 16, and 12 cm^2 respectively, which causes the first rod to move first, followed by the second, and then by the third rod. The actuator is controlled by a 2-position 3-way valve, which connects the actuator chamber to the tank at neutral position. As the control signal is applied to the valve, the actuator chamber is connected to the pump and the actuator starts extending. The rods are retracted by external load when the chamber is connected to the tank. The power unit relief valve is set to 50 bar, and maximum load to be handled by the actuator is 2500 N.


COMPONENT: simscapefluids
EXAMPLENAME: DigitalHydraulicActuatorExample
EXAMPLETITLE: Digital Hydraulic Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A digital hydraulic actuator that consists of 3 double-acting cylinders mounted in the same shell and interconnected through the hard stops. The gap between the leftmost piston and the shell is equal to 2^0*base_length, the gap between the first and the second pistons is set to 2^1*base_length, and the gap between the second and the third pistons is set to 2^2*base_length. The piston area in the rightmost chamber is half the size of the areas of the other chambers. The rightmost chamber is permanently connected to the pump while the other three chambers are connected either to pump or tank depending on the 2-position 3-way electro-hydraulic valves. As a result, 2^3 discrete positions can be reached within 2^3*base_length range.


COMPONENT: simscapefluids
EXAMPLENAME: RotatingHydraulicActuatorExample
EXAMPLETITLE: Rotating Hydraulic Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A typical hydraulic cylinder actuator used to operate friction clutches, brakes and other devices installed on rotating shafts. The key element of the actuator is a piston that moves back and forth under pressure provided through the central drill in the shaft and through channels in the clutch. In the example, the actuator acts against a preloaded spring, which tends to push the piston against the clutch wall.


COMPONENT: simscapefluids
EXAMPLENAME: OscillatingHydraulicMechanismExample
EXAMPLETITLE: Oscillating Hydraulic Mechanism
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An oscillating hydraulic mechanism that consists of a single-acting hydraulic rotary actuator, winch, flow control valve, two-position electro-hydraulic valve, and power and control units. The mechanism maintains oscillating vertical motion of the weight by raising it to 25 cm and then allowing it to fall. To raise the weight, the electro-hydraulic valve is energized and connects the power unit to the hydraulic actuator inlet. As the weight reaches 25 cm the valve is deenergized, connecting the actuator chamber to tank.


COMPONENT: simscapefluids
EXAMPLENAME: SequencingCircuitForTwoRotaryActuatorsHExample
EXAMPLETITLE: Sequencing Circuit for Two Rotary Actuators
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A sequence circuit that is based on four check valves installed in both pressure and return lines of the second rotary actuator. The cracking pressure of all the valves is set higher than any load pressure of Rotary Actuator 1, but lower than pressure that develops in its chambers at the end of the stroke when Rotary Actuator 1 reaches its hard stop. As a result, the Rotary Actuator 2 starts moving only after the Rotary Actuator 1 completes its stroke.


COMPONENT: simscapefluids
EXAMPLENAME: HydrostaticTransmissionHExample
EXAMPLETITLE: Hydrostatic Transmission
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A transmission built of a variable-displacement pump, and a fixed-displacement hydraulic motor. Pipelines between the source and motor are connected by two replenishing valves (check valves) and a charge pump on the pump side and two pressure-relief valves on the motor side. The motor drives a mechanical load consisting of inertia, viscous friction, and time-varying torque. The system is tested with varying pump flow rate and motor torque load.


COMPONENT: simscapefluids
EXAMPLENAME: HydrostaticTransmissionWithSecondaryControlExample
EXAMPLETITLE: Hydrostatic Transmission with Secondary Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The usage of secondary control in hydrostatic transmissions with a variable-displacement motor. It uses a pressure-compensated variable-displacement pump, a variable-displacement motor, and is controlled by a secondary control unit. The secondary control unit is a servo-cylinder controlled by a proportional 4-way valve. The servo-cylinder drives the control member of the variable-displacement motor, which is represented by a mass, spring, and damper. The hydrostatic transmission is used in a closed-loop control system with an angular velocity feedback. It drives a winch which lifts a mass and acts against a viscous damper. A dynamic compensator is included in the secondary control unit to improve system stability.


COMPONENT: simscapefluids
EXAMPLENAME: HydrostaticTransmissionWithShuttleValveExample
EXAMPLETITLE: Hydrostatic Transmission with Shuttle Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A hydrostatic transmission with a shuttle valve in the control unit. The 4-way directional valve that controls the motor is actuated by a valve actuator whose input is controlled by two 2-position valves (Shuttle A Valve, Shuttle A1 Valve). The shuttle valve installed between the actuator and the 2-position valves allows the 4-way directional valve to be opened by opening either 2-position valve, and those valves are opened by signals S1 and S2. A fixed orifice is connected to the P port of the two-position valves to decrease flow consumption of the control circuit. Another fixed orifice introduces a small leak from the valve control chamber to avoid this chamber being isolated from the main flow. The motor is connected to pressure line at 1 second and 5 seconds by activating each of the two-position valves.


COMPONENT: simscapefluids
EXAMPLENAME: TwoPositionValveActuatorExample
EXAMPLETITLE: 2-Position Valve Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Two valve actuators with different values for switching-on time and switching-off time. Valve Actuator 1 is set to start from the retracted position, while Valve Actuator 2 from the extended position. Both actuators are driven with the same pulse signal.


COMPONENT: simscapefluids
EXAMPLENAME: ThreePositionValveActuatorExample
EXAMPLETITLE: 3-Position Valve Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A use of a double-acting valve actuator. All three actuators are driven by the same pulse signals. A pulse is first applied to port A and after 1.5 s delay a pulse is applied to port B. Actuator A is set to start from the "Extended positive" position, while actuator C starts from the "Extended negative" position. As a result, actuators A and C move to the neutral position at the start of simulation and reach this position before the first pulse is applied. The actuators strokes, switch-on, and switch-off times are set to different values to illustrate the effects of these parameters.


COMPONENT: simscapefluids
EXAMPLENAME: AntagonisticMcKibbenMuscleActuatorExample
EXAMPLETITLE: Antagonistic McKibben Muscle Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
This demo shows a muscle actuation based on two air muscle actuators (or McKibben artificial muscles) in antagonistic connection. The air muscle actuators are connected to the opposite sides of a lever. The 4-way directional valve is controlled by an electro-mechanical valve actuator. In the 4-way directional way when the high-pressure path P-A and return line B-T are open, the top air muscle actuator contracts and forces the bottom air muscle actuator on the opposite side to extend. Similarly, as the high-pressure path P-B and return line A-T open, the bottom air muscle actuator starts to contract and forces the top air muscle actuator to extend. The oscillating motions of the muscles are converted into the angular rotation of the output load connected to the mechanical linkage modeled with the slider-cranks.


COMPONENT: simscapefluids
EXAMPLENAME: CounterbalanceValveWithBoomArmExample
EXAMPLETITLE: Counterbalance Valve with Boom Arm
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, test, and compare design cases for a counterbalance valve in a boom arm mechanism. A counterbalance valve allows an upstream flow from the back port to the load port through the check valve stage during cylinder rod extension, and it allows a downstream flow from the load port to the back port through the relief valve stage during cylinder rod retraction in the boom arm mechanism. Counterbalance valves help with the load holding, load actuation, speed control, and safety by controlling the piston motion of the booming cylinder. When you run the model, it generates a plot of the booming cylinder position and the forces at the A side and B side of the cylinder piston.


COMPONENT: simscapefluids
EXAMPLENAME: ClosedCircuitHydraulicActuatorExample
EXAMPLETITLE: Closed-Circuit Hydraulic Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A closed-circuit hydraulic actuator driven by a variable-speed pump. The actuator is arranged as a closed fluid system with two replenishment valves (check valves) and a spring-loaded accumulator serving as a replenishment reservoir. The pump speed is controlled by the difference between the commanded and measured piston position. The actuator acts against a spring, a damper, and a time-varying load.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicActuatorWithDualCounterbalanceValvesExample
EXAMPLETITLE: Hydraulic Actuator with Dual Counterbalance Valves
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An actuator controlled by a 4-way directional valve and loaded with an overriding load, requiring the use of counterbalance valves to prevent the load from creeping when the directional valve is in the neutral position. In the neutral position, the directional valve connects ports A and B to the reservoir while blocking the pressure port P. The counterbalance valves block flow from returning to the reservoir, thus holding the actuator in place.


COMPONENT: simscapefluids
EXAMPLENAME: SequencingCircuitForTwoRotaryActuatorsExample
EXAMPLETITLE: Sequencing Circuit for Two Rotary Actuators
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A sequencing circuit that is based on four check valves installed in the pressure and return lines of the second rotary actuator. The cracking pressure of the meter-in check valves is set high enough to prevent flow into rotary actuator 2 while rotary actuator 1 is rotating, but lower than the pressure that develops once rotary actuator 1 reaches its hard stop. As a result, rotary actuator 2 starts moving only after rotary actuator 1 completes its stroke.


COMPONENT: simscapefluids
EXAMPLENAME: HydrostaticTransmissionExample
EXAMPLETITLE: Hydrostatic Transmission
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A hydraulic transmission system built of a variable-displacement pump and a fixed-displacement motor. The pipes between the pump and the motor are connected by two replenishing valves (check valves) and a charge pump on the pump side and two pressure relief valves on the motor side. The motor drives a mechanical load consisting of an inertia, viscous friction, and time-varying torque. The system is tested with both positive and negative pump flow rate by varying the pump displacement.


COMPONENT: simscapefluids
EXAMPLENAME: PowerAssistedSteeringMechanismExample
EXAMPLETITLE: Power-Assisted Steering Mechanism
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A simplified version of a power-assisted steering mechanism. The hydraulic actuation system includes a double-acting hydraulic cylinder, 4-way valve, fixed-displacement pump, and a pressure-relief valve. The steering rack acts against a load modeled by a spring and damper.


COMPONENT: simscapefluids
EXAMPLENAME: DrillReamActuatorExample
EXAMPLETITLE: Drill-Ream Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An actuator that drives a machine tool working unit performing a sequence of three technological operations: coarse drilling, fine drilling, and reaming. The actuator speed is controlled by one of three pressure-compensated flow control valves metering out return flow from the cylinder. The selection of an appropriate flow control is performed by directional valves that are activated by a control unit.


COMPONENT: simscapefluids
EXAMPLENAME: FrontLoaderActuationSystemExample
EXAMPLETITLE: Front-Loader Actuation System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A simplified version of an actuation system consisting of the lift and tilt cylinders. Each cylinder is controlled by an open center, 6-way, 3-position directional valve. The valves are connected in series through their unloading branch such that the system pump is unloaded when both command levers are in neutral position. If either tilt or lift command is applied, the unloading path is closed.


COMPONENT: simscapefluids
EXAMPLENAME: PriorityValveControllingTwoHydraulicMotorsExample
EXAMPLETITLE: Priority Valve Controlling Two Hydraulic Motors
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A pressure-compensated 3-way flow control valve. This valve maintains constant flow rate through the main hydraulic motor, which is connected to the pressure-compensated outlet of the flow control valve. It acts as a priority valve, diverting the excess flow to the auxiliary hydraulic motor if the main hydraulic motor receives enough fluid to maintain a preset angular velocity. The auxiliary motor is shut off completely if there is insufficient flow to power the main hydraulic motor.


COMPONENT: simscapefluids
EXAMPLENAME: LubricationSystemExample
EXAMPLETITLE: Lubrication System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A simplified version of a lubrication system fed with the centrifugal pump. The system consists of five major units: Pump Unit, Scavenge Unit, Heat Exchanger Manifold, Nozzle Manifold, and Control Unit. Both the pump and the scavenge unit are built around the centrifugal pump. The Scavenge Unit collects fluid discharged by nozzles and pumps it back into the reservoir of the Pump Unit. The Control Unit generates commands to bypass either the heat exchanger, represented as a local resistance, or the nozzles block. In a real system, these commands are generated by temperature sensors installed in lubrication cavities.


COMPONENT: simscapefluids
EXAMPLENAME: WaterHammerExample
EXAMPLETITLE: Water Hammer Effect
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
This demo shows how the Isothermal Liquid library can be used to model water hammer in a long pipe. After opening a valve to slowly establish steady flow in the pipe, the valve is quickly shut. If the Valve is shut quickly enough, it triggers a water hammer effect. A water hammer arrestor suppresses the pressure spikes.


COMPONENT: simscapefluids
EXAMPLENAME: DieselEngineInLineInjectionSystemHExample
EXAMPLETITLE: Diesel Engine In-Line Injection System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An in-line multi-element diesel injection system. It contains a cam shaft, lift pump, 4 in-line injector pumps, and 4 injectors.


COMPONENT: simscapefluids
EXAMPLENAME: DishwasherFaultAnalysisExample
EXAMPLETITLE: Dishwasher Fault Analysis
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model a dishwasher and introduce a fault in its operation. Observe the system response when a fault occurs in the water heater during operation. The electric motor switches off, and the dishwasher aborts operation.


COMPONENT: simscapefluids
EXAMPLENAME: InjectionMoldingActuationSystemExample
EXAMPLETITLE: Injection Molding Actuation System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An injection molding actuation system. The model contains a set of cartridge valves that control pumps, motors, and cylinders to execute the steps of an injection molding process.


COMPONENT: simscapefluids
EXAMPLENAME: PEMFuelCellSystemWithACustomLibraryExample
EXAMPLETITLE: PEM Fuel Cell System with a Custom Library
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model a proton exchange membrane (PEM) fuel cell stack with a custom library and custom Simscape domain. The custom library includes blocks that are tailored to fuel cell modeling. The custom domain models a 4-species gas mixture that contains nitrogen (N2), oxygen (O2), hydrogen (H2), and water vapor (H2O).


COMPONENT: simscapefluids
EXAMPLENAME: PressureReducingValveInPunchingOperationExample
EXAMPLETITLE: Pressure Reducing Valve in Punching Operation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a hydraulic system with a direct operated, pressure reducing valve. This system helps to limit and maintain pressure in a hydraulic punching machine. Pressure reducing valves are common in hydraulic pressing, drilling, and stamping applications.


COMPONENT: simscapefluids
EXAMPLENAME: DieselEngineInLineInjectionSystemExample
EXAMPLETITLE: Diesel Engine In-Line Injection System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An in-line multi-element diesel injection system. It consists of a cam shaft, a lift pump, four in-line injection pumps, and four injectors.


COMPONENT: simscapefluids
EXAMPLENAME: ClosedLoopPumpControlWithFlexibleDriveShaftExample
EXAMPLETITLE: Closed-Loop Pump Control with Flexible Drive Shaft
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A typical power unit consisting of a fixed-displacement pump driven by a motor through a flexible transmission and a pressure-relief valve. A variable orifice serves as a load for the system.


COMPONENT: simscapefluids
EXAMPLENAME: PumpWithPressureReducingValveAndTwoLoadsExample
EXAMPLETITLE: Pump with Pressure-Reducing Valve and Two Loads
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A typical power unit consisting of a fixed-displacement pump driven by an angular velocity source, a pressure-relief valve, a pressure-reducing valve, and two variable orifices.


COMPONENT: simscapefluids
EXAMPLENAME: MotorDrivenByLoadSensingPumpExample
EXAMPLETITLE: Hydraulic Motor Driven by Load-Sensing Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A circuit that is equipped with a load-sensing velocity regulator installed between the pump and directional valve. Unlike a conventional meter-in velocity control, the load-sensing device automatically adjusts output pressure of the pump in such a way that it equals the sum of the preset pressure drop across the pressure-compensated flow control valve and the pressure induced by load. The pilot-operated pressure-relief valve in the Load-Sensing Velocity Control block is built of the Poppet Valve and the Hydraulic Double-Acting Valve Actuator blocks.


COMPONENT: simscapefluids
EXAMPLENAME: MotorDrivenByLoadSensingVariableDisplacementPumpExample
EXAMPLETITLE: Hydraulic Motor Driven by Load-Sensing Variable-Displacement Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A circuit using a load-sensing and pressure-limiting unit in a conventional reciprocal system with variable load on the forward stroke. The unit limits output pressure to 300 bar and maintains a preset pressure drop in 10 bar across velocity control orifice on the discharge port of the pump. The unit is built of two 3-way, 2-position valves, two single-acting hydraulic valve actuators, and one double-acting hydraulic valve actuator.


COMPONENT: simscapefluids
EXAMPLENAME: PistonPumpWithLoadSensingAndPressureLimitingControlHExample
EXAMPLETITLE: Hydraulic Axial-Piston Pump with Load-Sensing and Pressure-Limiting Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test rig designed to investigate interaction between an axial-piston pump and a typical control unit, simultaneously performing the load-sensing and pressure-limiting functions. To assure required accuracy, the model of the pump must account for such features as interaction between pistons, swash plate, and porting plate, which makes it necessary to build a detailed pump model.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicAxialPistonMotorExample
EXAMPLETITLE: Hydraulic Axial-Piston Motor
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An axial piston motor with a test harness. To increase the fidelity of the simulation, this model uses a detailed representation of the motor that accounts for the interaction between the pistons, swash plate, and valve plate.


COMPONENT: simscapefluids
EXAMPLENAME: HydrostaticCVTExample
EXAMPLETITLE: Hydrostatic CVT
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, and test a hydrostatic continuously variable transmission (CVT) with a swash angle shift command. When you run the plot function, it generates a comparison plot between the engine and the achieved rotational velocity in the hydraulic axial piston motor with respect to the time. Construction and agricultural equipment manufacturers use these transmissions.


COMPONENT: simscapefluids
EXAMPLENAME: PistonPumpWithLoadSensingAndPressureLimitingControlExample
EXAMPLETITLE: Hydraulic Axial-Piston Pump with Load-Sensing and Pressure-Limiting Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test rig designed to investigate the interaction between an axial-piston pump and a typical control unit simultaneously performing the load-sensing and pressure-limiting functions. To increase the fidelity of the simulation, this example uses a detailed model of the pump that accounts for the interaction between the pistons, swash plate, and valve plate.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicFlapperNozzleAmplifierExample
EXAMPLETITLE: Hydraulic Flapper-Nozzle Amplifier
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
An amplifier that consists of two fixed orifices, two variable orifices representing nozzles, flapper, and main valve simulated with mass, viscous friction, and centering spring. Two translational converters represent servo-actuators on both sides of the main valve. A feedback spring connects the flapper and the main valve.


COMPONENT: simscapefluids
EXAMPLENAME: ServoValveControllingHydraulicActuatorExample
EXAMPLETITLE: Servo-Valve Controlling Hydraulic Actuator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A model of a two-stage servo-valve with a 4-way, 3-position spool valve in the power stage and a flapper-nozzle amplifier in the pilot stage. The flapper is connected to the armature of a torque motor, which in the example is represented with an ideal translational force source. The servo-valve shown in the example is equipped with the spring feedback between the flapper and the spool of the main valve. To investigate the behavior of such a valve, axial hydraulic forces on all four spool orifices are accounted for in the model by using Spool Orifice Hydraulic Force blocks. The servo-valve controls a simple double-acting cylinder in an open-loop application.


COMPONENT: simscapefluids
EXAMPLENAME: PilotOperatedCheckValveTestRigExample
EXAMPLETITLE: Pilot-Operated Check Valve Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test circuit built to check the characteristics of a pilot-operated check valve. The valve is loaded with three ideal pressure sources, two of which create pressure differential across the main flow line, while the third applies pressure to the pilot inlet X. The pilot pressure allows flow through the valve even if the main pressure differential is negative.


COMPONENT: simscapefluids
EXAMPLENAME: DirectActingPressureReliefValveTestRigExample
EXAMPLETITLE: Direct-Acting Pressure Relief Valve Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test circuit built to check the pressure-flow characteristic of a direct-acting pressure-relief valve. The valve model consists of an orifice, a hydro-mechanical converter, a preloaded spring, and a hard stop.


COMPONENT: simscapefluids
EXAMPLENAME: PressureCompensatedFlowControlTestRigExample
EXAMPLETITLE: Pressure-Compensated Flow Control Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test circuit built to check the characteristics of a pressure compensator. A pressure source is connected to two flow paths, each with a fixed orifice and a variable orifice that acts as a variable load. Along one flow path a pressure compensator is installed.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicFlowRectifierCircuitHExample
EXAMPLETITLE: Hydraulic Flow Rectifier Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A flow rectifier circuit, which consists of four check valves and a flow control valve. It is used to control flow rate flowing in both directions with only one flow control valve. Similar to a Graetz circuit implemented with diodes, the check valves are arranged in such a way that flow always passes through the flow control valve in the same direction. Two other check valves, Flow BA Check Valve and Flow AB Check Valve, are used to select an orifice depending on the flow direction.


COMPONENT: simscapefluids
EXAMPLENAME: CounterbalanceValveWithTestHarnessExample
EXAMPLETITLE: Counterbalance Valve with Test Harness
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, and test a counterbalance valve. When you run the model, it generates a plot of the flow from the load port to the back port due to the relief action of the counterbalance valve. A counterbalance valve allows an upstream flow from the back port to the load port through the check valve stage, and it allows a downstream flow from the load port to the back port through the relief stage. Counterbalance valves help with the load holding, load actuation speed control, and safety.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicFlowRectifierCircuitExample
EXAMPLETITLE: Hydraulic Flow Rectifier Circuit
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A flow rectifier circuit with four check valves and a flow control valve. It is used to allow a single flow control valve to control fluid flow in both directions. Similar to a Graetz circuit implemented with diodes, the check valves are arranged in such a way that flow always passes through the flow control valve in the same direction. In the Orifices subsystem, there are two more check valves that are used to select the orifice that the flow passes through depending on the flow direction.


COMPONENT: simscapefluids
EXAMPLENAME: ServoValveWithCustomFidelityExample
EXAMPLETITLE: Servo Valve with Custom Fidelity
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Compares the mechanical performance of various spool actuation configurations and model fidelity levels for a hydraulic 4-way 3-position directional valve. The directional valve controls a simple double-acting cylinder in a closed-loop application. This example allows you to choose among four different spool actuation designs:


COMPONENT: simscapefluids
EXAMPLENAME: AircraftFuelSupplySystemWithThreeTanksHExample
EXAMPLETITLE: Aircraft Fuel Supply System with Three Tanks
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The fuel supply system represented in the example consists of three tanks and an engine. The engine is fed from the central tank, while fuel from the left wing tank and the right wing tank is pumped to the central tank with respective pumping stations. Each pumping station consists of two centrifugal pumps, connected in parallel, with check valves installed in the pump outlets to prevent back flow. The pumps are driven by prime movers at angular velocity of 7200 rpm. The movers are simulated with the ideal angular velocity source.


COMPONENT: simscapefluids
EXAMPLENAME: WaterSupplySystemExample
EXAMPLETITLE: Water Supply System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A water supply system consisting of three pumping stations located at 45, 25, and 30 m with respect to the reference plane, respectively. All three stations are expected to pump water in a tank located at 61 m. All tanks are large enough to assume that the fluid level remains nearly constant, allowing them to be modeled with the Constant Head Tank block. The initial volume of water in each tank is set to 100 m^3. Each pumping station consists of a tank, two centrifugal pumps installed in parallel, and a prime mover rotating at 1700 rpm. The pump characteristics are specified using lookup tables.


COMPONENT: simscapefluids
EXAMPLENAME: ThreeConstantHeadTanksExample
EXAMPLETITLE: Three Constant Head Tanks
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A classical problem of fluid transportation: to determine flow rates, pressures, and fluid volumes in a system built of three constant head tanks. The tanks are located at different elevations and connected with pipelines combined together in a common node located at 50 meters with respect to the reference plane. The simulation time is set to 50 seconds, which is enough for system variables to settle down and reach near steady-state values.


COMPONENT: simscapefluids
EXAMPLENAME: WellWithJetPumpExample
EXAMPLETITLE: Well with Jet Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A well jet pump installation. The well jet pump installation presented in this example consists of a surface-mounted centrifugal pump and a jet pump installed in the well below the surface of the water.


COMPONENT: simscapefluids
EXAMPLENAME: FlowDividerTestRigExample
EXAMPLETITLE: Flow Divider Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The behavior of a flow divider subjected to varying loads. The model consists of a power unit, flow divider, and two consumers. The power unit is modeled using a flow rate source and a pressure relief valve. The Flow Divider block splits the flow between the two variable orifices.


COMPONENT: simscapefluids
EXAMPLENAME: SegmentedPipelineTestRigExample
EXAMPLETITLE: Segmented Pipeline Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test rig used to investigate the water hammer effect, which occurs when a variable orifice is abruptly shut off with full flow rate flowing through the branch. The water hammer behavior of the pipeline can be investigated by changing pipeline dimensions, number of segments in the pipeline model, fluid properties, valve closure speed, and minimum opening.


COMPONENT: simscapefluids
EXAMPLENAME: GasChargedAccumulatorTestRigExample
EXAMPLETITLE: Gas-Charged Accumulator Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test rig for a gas-charged accumulator. The accumulator is charged by the pressure source while the orifice is closed, held at its charged pressure by the check valve, and discharged as the orifice opens.


COMPONENT: simscapefluids
EXAMPLENAME: SpringLoadedAccumulatorTestRigExample
EXAMPLETITLE: Spring-Loaded Accumulator Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A test rig for a spring-loaded accumulator. The accumulator is charged by the pressure source while the orifice is closed, held at its charged pressure by the check valve, and discharged as the orifice opens.


COMPONENT: simscapefluids
EXAMPLENAME: ConstantVolumeChamberTestRigExample
EXAMPLETITLE: Constant Volume Chamber Test Rig
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The behavior of a constant volume chamber exposed to a step increase in pressure. The chamber is placed between two linear hydraulic resistances and subjected to an abrupt change in supply pressure. The chamber is a piece of a steel cylindrical pipe of 0.03 m internal diameter, 0.036 m external diameter, and 16.5 m length. If the chamber wall is set to rigid and the amount of entrapped air is zero, the pressure change at the chamber inlet can be determined analytically.


COMPONENT: simscapefluids
EXAMPLENAME: PartiallyFilledPipeExample
EXAMPLETITLE: Partially Filled Pipe
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The Partially Filled Pipe (IL) block used to model the emptying and filling of a tank in multiple configurations. You can use the live script provided with this example to understand the effect of different configurations.


COMPONENT: simscapefluids
EXAMPLENAME: HydraulicOilSystemWithThermalControlExample
EXAMPLETITLE: Hydraulic Oil System with Thermal Control
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A hydraulic oil system with a thermal control using Simscape™ Fluids™ Thermal Liquid blocks. The hydraulic oil system consists of an oil storage tank represented by the Tank (TL) block with two inlets, a pump represented by a Mass Flow Rate Source (TL) block, and pipelines represented by Pipe (TL) block.


COMPONENT: simscapefluids
EXAMPLENAME: HouseHeatingSystemExample
EXAMPLETITLE: House Heating System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model a simple house heating system. The model contains a heater, a controller, and a house structure with four radiators and four rooms. Each room exchanges heat with the environment through its exterior walls, roof, and windows. Each path is simulated as a combination of a thermal convection, thermal conduction, and the thermal mass. It is assumed that heat is not transferred internally between rooms. The heater consists of a furnace, a boiler, an accumulator, and a pump to circulate hot water in the system. The controller starts admitting fuel into the furnace if the overall average temperature of rooms falls below 21 degree C and it stops if the temperature exceeds 25 degree C. The simulation calculates the heating cost and indoor temperatures.


COMPONENT: simscapefluids
EXAMPLENAME: SimpleCPUCoolingSystemExample
EXAMPLETITLE: Simple CPU Cooling System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A simple CPU cooling system consists of a heat sink, a CPU fan, and fan controllers. The heat generated by the CPU is transferred to the heat sink by conduction and it is dissipated to the cooling air by forced convection mechanism. The heat sink is a parallel plate fin with rectangular fins between the plate fins. The CPU fan moves air across the heat sink by drawing air into the case grille from the outside and ejecting warm air from inside. The fan controller unit includes three control levels, representing a 3-speed switch, according to the CPU temperature. For lower CPU temperature, the fan speed is decreased and for higher temperature it is increased.


COMPONENT: simscapefluids
EXAMPLENAME: PipeFluidVaporizationAndCondensationExample
EXAMPLETITLE: Pipe Fluid Vaporization and Condensation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The 3-Zone Pipe (2P) block used to model vaporization or condensation of fluid flow in a pipe. The block divides the internal fluid volume into up to three zones: liquid zone, mixture zone, and vapor zone, depending on the state of the fluid along the pipe. As fluid flows through the pipe, heat is transferred between the environment external to the pipe and the fluid inside the pipe, causing it to change from liquid to mixture to vapor for the heating case or from vapor to mixture to liquid for the cooling case. The effect of thermal storage in the pipe wall can be optionally turned on by specifying a nonzero pipe wall thickness.


COMPONENT: simscapefluids
EXAMPLENAME: EVBatteryCoolingSystemExample
EXAMPLETITLE: EV Battery Cooling System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
This demo shows an Electric Vehicle (EV) battery cooling system. The battery packs are located on top of a cold plate which consists of cooling channels to direct the cooling liquid flow below the battery packs. The heat absorbed by the cooling liquid is transported to the Heating-Cooling Unit. The Heating-Cooling Unit consists of three branches to switch operating modes to cool and heat the battery. The Heater represents an electrical heater for fast heating of the batteries under low temperature conditions. The Radiator uses air-cooling and/or heating when the batteries are operated stably. The Refrigerant system is used for cooling the overheated batteries. The refrigeration cycle is represented by the amount of heat flow extracted from the cooling liquid. The system is simulated under either FTP-75 drive cycle or fast charge scenarios with different environment temperatures.


COMPONENT: simscapefluids
EXAMPLENAME: CondenserAndEvaporatorHeatTransferExample
EXAMPLETITLE: Condenser and Evaporator Heat Transfer
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a condenser or an evaporator in simple test setup with R134a refrigerant on the left side and moist air on the right side. It has a cross flow arrangement with the moist air blowing across tube banks filled with the refrigerant.


COMPONENT: simscapefluids
EXAMPLENAME: RefrigerationCycleAirConditioningExample
EXAMPLETITLE: Refrigeration Cycle (Air Conditioning)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A refrigeration cycle for a home air conditioning system. See Model a Refrigeration Cycle for the recommended steps to build this model in the two-phase fluid domain.


COMPONENT: simscapefluids
EXAMPLENAME: RefrigerationCycleSystemLevelExample
EXAMPLETITLE: Refrigeration Cycle (System-Level)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model a refrigeration cycle for a home air conditioning system at an abstract system level using the System-Level Refrigeration Cycle (2P) block. This block simplifies the set up of the refrigeration cycle by encapsulating the entire refrigerant loop in one block.


COMPONENT: simscapefluids
EXAMPLENAME: ResidentialRefrigeratorExample
EXAMPLETITLE: Residential Refrigerator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a basic refrigeration system that transfers heat between the refrigerant two-phase fluid and the environment moist air mixture. The compressor drives the R134a refrigerant through a condenser, a capillary tube, and an evaporator. An accumulator ensures that only vapor returns to the compressor.


COMPONENT: simscapefluids
EXAMPLENAME: BraytonCycleGasTurbineExample
EXAMPLETITLE: Brayton Cycle (Gas Turbine)
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a gas turbine auxiliary power unit (APU) based on the Brayton Cycle. The power input to the system is represented by heat injection into the combustor; actual combustion chemistry is not modeled. A single shaft connects the compressor and the turbine so that the power from the turbine drives the compressor. The APU is a free turbine that further expands the exhaust stream to produce output power.


COMPONENT: simscapefluids
EXAMPLENAME: CompressorMapExample
EXAMPLETITLE: Compressor Map
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Create the pressure ratio, corrected mass flow rate, and efficiency tables required to specify the performance characteristics of a dynamic compressor.


COMPONENT: simscapefluids
EXAMPLENAME: AirLiquefactionExample
EXAMPLETITLE: Air Liquefaction
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a Linde-Hampson air liquefaction cycle using the two-phase fluid components. The compressor drives the vapor air through two heat exchangers, recuperator, expansion valve, and storage tank. The first heat exchanger contains water at atmospheric temperature, while the second heat exchanger contains refrigerant. The pressure drops as the cooled air passes through the expansion valve which results in condensation. The air and entrained condensation then pass through a receiver tank where the condensation separates from the air. The liquid air is stored in a receiver tank while the vapor air is circulated back to the compressor.


COMPONENT: simscapefluids
EXAMPLENAME: ResidentialAirSourceHeatPumpExample
EXAMPLETITLE: Residential Air Source Heat Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models an air source heat pump system that is used to heat a residential building having hot-water radiators for heat distribution. The two-phase fluid refrigerant takes up heat from the environment moist air mixture and transfers heat to water. The compressor drives the R410a refrigerant through a condenser, a thermostatic expansion valve, and an evaporator. An accumulator ensures that only vapor returns to the compressor.


COMPONENT: simscapefluids
EXAMPLENAME: ReceiverAccumulatorExample
EXAMPLETITLE: Receiver Accumulator
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
The liquid and vapor separation using the Receiver Accumulator (2P) block. The Receiver Accumulator (2P) block models a container of fluid in a two-phase fluid network with separate liquid and vapor ports. In an HVAC system, when this tank is placed between a condenser and an expansion valve, it acts as a receiver. Liquid connections to the block are made at ports AL and BL. When the tank is placed between an evaporator and a compressor, it acts as an accumulator. Vapor connections to the block are made at ports AV and BV. The fluid in the container can be fully liquid, fully vapor, or a mixture of both. Mass and energy exchange can occur between the fluid phases due to vaporization and condensation.


COMPONENT: simscapefluids
EXAMPLENAME: LiquidAirEnergyStorageSystemExample
EXAMPLETITLE: Liquid Air Energy Storage System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a grid-scale energy storage system based on cryogenic liquid air. When there is excess power, the system liquefies ambient air based on a variation of the Claude cycle. The cold liquid air is stored in a low-pressure insulated tank until needed. When there is high power demand, the system expands the stored liquid air to produce power based on the Rankine cycle.


COMPONENT: simscapefluids
EXAMPLENAME: ResidentialGroundSourceHeatPumpExample
EXAMPLETITLE: Residential Ground Source Heat Pump
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a ground source heat pump system that is used to heat a residential building having hot-water radiators for heat distribution. The ground source heat pump uses R410a, a two-phase fluid refrigerant, as the working fluid. The heat pump takes up the naturally existing heat stored in the ground and transfers the heat to the hot-water radiators. The compressor drives the refrigerant through a condenser, a thermostatic expansion valve, and an evaporator. An accumulator ensures that only vapor returns to the compressor.


COMPONENT: simscapefluids
EXAMPLENAME: VehicleHVACSystemExample
EXAMPLETITLE: Vehicle HVAC System
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models the heating and cooling system of a passenger car. The cabin is represented as a volume of moist air exchanging heat with the external environment. The blower drives moist air through the evaporator, blend door, and heater core before returning to the cabin. The blend door controls the amount of air flow through the heater core. The recirculation door controls whether air is brought in from the external environment or from within the cabin.


COMPONENT: simscapefluids
EXAMPLENAME: HydrogenRefuelingStationExample
EXAMPLETITLE: Hydrogen Refueling Station
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models a hydrogen refueling station. Hydrogen is stored in low-pressure storage tanks at 200 bar at the station. A 3-stage intercooled compressor maintains the necessary pressure in a cascade buffer storage system so that the station is ready to dispatch hydrogen to any connected vehicles. The buffer is divided into high-pressure tanks at 950 bar, medium-pressure tanks at 650 bar, and low-pressure tanks at 450 bar. To avoid wasting compression energy, the lowest pressure buffer that is greater than the vehicle tank pressure is used to dispatch hydrogen. Priority valves switches between the different buffer tanks to control which buffer tanks to fill and discharge from.


COMPONENT: simscapefluids
EXAMPLENAME: DataCenterCoolingExample
EXAMPLETITLE: Data Center Cooling
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Models the cooling system of a data center. The system consists of two separate water loops: a chilled water loop and a condenser water loop. The chilled water loop absorbs heat from the server farm and transfers it to the condenser water loop. The condenser water loop rejects this heat to the environment using a cooling tower.


COMPONENT: simscapefluids
EXAMPLENAME: ReciprocalActuatorWithDifferentialCylindersExample
EXAMPLETITLE: Reciprocal Actuator with Differential Cylinders
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A double-acting actuator with differential cylinders. The pump output is connected to cylinder B of the actuator while cylinder A of the actuator can be connected to either the pump or the reservoir through the 3-way directional valve. When cylinder A is connected to the pump, pressures at both cylinders become equal. Because of the larger effective piston area in cylinder A, the interface force in cylinder A is larger than that of in cylinder B which causes the piston to extend. When cylinder A is connected to the reservoir, the piston starts to retract. The 3-way directional valve is controlled by a sinusoidal signal to achieve repeating reciprocal motion in the actuator.


COMPONENT: simscapefluids
EXAMPLENAME: DirectionalValveWithMechanicalEffectsExample
EXAMPLETITLE: 4-Way Directional Valve with Mechanical Effects
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Compares two 4-way directional valves, one with mechanical components to account for spool mass, valve spring and damper and one without (ideal valve). The input force to both valves is a sine wave. The operation of two valves are compared for different displacement frequencies, valve spring stiffness and damper coefficients.


COMPONENT: simscapefluids
EXAMPLENAME: TandemPrimaryCylinderExample
EXAMPLETITLE: Tandem Primary Cylinder
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize and test a tandem primary cylinder starting from manufacturer datasheet information. First, there is a brief discussion on the mathematical modeling of the system. Given the numerical data extracted from the datasheet, optimization is then used to determine remaining unknown parameters. The model is then simulated and the resulting push rod force - brake pressure relationship curve is compared with the curve provided on the manufacturer datasheet. Understanding the behavior of the tandem primary cylinder is an important prerequisite to selection of other braking system components.


COMPONENT: simscapefluids
EXAMPLENAME: CylinderDesignParameterSensitivityAnalysisExample
EXAMPLETITLE: Cylinder Design Parameter Sensitivity Analysis
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Perform a sensitivity analysis for tandem primary cylinder model in Simscape™. The example requires the Simulink® Design Optimization™ to be installed and licensed to run.


COMPONENT: simscapefluids
EXAMPLENAME: CylinderDesignParameterEstimationExample
EXAMPLETITLE: Cylinder Design Parameter Estimation
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Parameterize and test a tandem primary cylinder starting from a manufacturer datasheet. This example uses optimization to determine remaining unknown parameters, given the numerical data extracted from the datasheet. After the model is simulated, it compares the resulting push rod force - brake pressure relationship curve to the curve provided on the manufacturer datasheet. Understanding the behavior of the tandem primary cylinder is important when selecting other braking system components.


COMPONENT: simscapefluids
EXAMPLENAME: VacuumBoosterExample
EXAMPLETITLE: Vacuum Booster
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize and test a vacuum booster. The model is used to generate the plot between applied and generated forces for the brake vacuum booster.


COMPONENT: simscapefluids
EXAMPLENAME: VacuumBoostedTandemPrimaryCylinderExample
EXAMPLETITLE: Vacuum Boosted Tandem Primary Cylinder
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, and test a vacuum boosted tandem primary cylinder. A model is used to generate the plot between the applied force and the generated pressures in the brake lines.


COMPONENT: simscapefluids
EXAMPLENAME: ABSOpenLoopTestBenchExample
EXAMPLETITLE: ABS Open Loop Test Bench
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A simple way of modeling of the anti-lock braking system (ABS) and using it with the manual braking components. The model simulates for the open loop ABS and shows the response of the pressures achieved in the caliper disc brakes. This model can be utilized in sizing of the release valve, apply valve and accumulator for the hydraulic control unit of the ABS.


COMPONENT: simscapefluids
EXAMPLENAME: FlowDividerExample
EXAMPLETITLE: Flow Divider
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
A simple way of modeling of the flow divider and using it with the load harness. The flow divider helps in dividing the input flow in desired percentage when the loads connected to the two lines are unequal. Flow divider allows flow only in forward direction. Therefore when it is used with the loads where unloading is done through reverse flows, then it should be used in conjunction with the direction control valves.


COMPONENT: simscapefluids
EXAMPLENAME: SingleStagePrimaryCylinderExample
EXAMPLETITLE: Single-Stage Primary Cylinder
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize and test a single-stage primary cylinder starting from manufacturer datasheet information. Given the numerical data extracted from the datasheet, the unknown parameters are calculated. The model is then simulated and the resulting push rod force versus pressure relationship curve is compared with curve provided on the manufacturer datasheet.


COMPONENT: simscapefluids
EXAMPLENAME: SecondaryCylinderExample
EXAMPLETITLE: Secondary Cylinder
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize and, test a secondary cylinder. Given the numerical data extracted from the datasheet of the single-stage primary cylinder, the unknown parameters of the secondary cylinder are calculated. The model is simulated to generate the plot between the applied force to the single-stage primary cylinder and the pressure developed inside the secondary cylinder.


COMPONENT: simscapefluids
EXAMPLENAME: PressureControlSolenoidExample
EXAMPLETITLE: Pressure Control Solenoid
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, and test a pressure control solenoid valve. This example also generates a plot of the relationship between applied solenoid force and the resulting actuator port pressure.


COMPONENT: simscapefluids
EXAMPLENAME: PressureControlServoValveExample
EXAMPLETITLE: Pressure Control Servo Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, and test a pressure control servo valve with a closed loop control. This example also generates a comparison plot between the commanded and the achieved pressure in the actuator with respect to the time. This valve provides a precise and fast control of the pressure in the actuator with a very small electrical signal to the torque motor. These valves are used in the aerospace industry and the automotive industry for the safety critical applications.


COMPONENT: simscapefluids
EXAMPLENAME: PositionControlServoValveExample
EXAMPLETITLE: Position Control Servo Valve
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model, parameterize, and test a position control servo valve with a closed loop control. When you run the model, it generates a comparison plot between the commanded and the achieved position in the actuator with respect to the time. A position control servo valve provides a precise and fast control of the position in the actuator with a very small electrical signal to the torque motor. Aerospace, construction and agricultural equipments manufacturers use these valves for safety critical applications.


COMPONENT: simscapefluids
EXAMPLENAME: FourWayThreePositionValveParameterizationExample
EXAMPLETITLE: 4-Way 3-Position Valve Parameterization
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Parameterize and test a 4-way 3-position valve with a test harness. A plot script is provided with the example for comparing output flow between the block and data to verify the test harness. A live script is also provided with this example to explain the parameterization and the test harness workflow in detail.


COMPONENT: simscapefluids
EXAMPLENAME: RefrigerantModernizationExample
EXAMPLETITLE: Refrigerant Modernization
PRODUCT: MATLAB;Simscape Fluids;Simscape;Simulink
DESCRIPTION:
Retrofit a Simscape™ cooling cycle that uses R410a to utilize R32, which is a refrigerant with a lower Global Warming Potential (GWP). The process involves modifying the nominal mass flow rate and refrigerant charge, while retaining the original evaporator and condenser specifications. For more information on designing a cooling cycle, see Model a Refrigeration Cycle and Refrigeration Cycle (Air Conditioning).


COMPONENT: simscapefluids
EXAMPLENAME: BuildingThermalManagementExample
EXAMPLETITLE: Building Thermal Management
PRODUCT: MATLAB;Simscape Fluids;Simscape;Simulink
DESCRIPTION:
Model temperature and humidity in a large-scale building in Simscape™ using a custom BuildingHVAC domain and corresponding custom library blocks. The first of two models shows how to estimate the sensible and latent cooling requirement to maintain a desired temperature. The second model shows how to add simple HVAC controls and estimate energy usage.


COMPONENT: simscapefluids
EXAMPLENAME: PressureReducingValveTestHarnessExample
EXAMPLETITLE: Pressure Reducing Valve Test Harness
PRODUCT: MATLAB;Simscape Fluids;Simulink;Simscape
DESCRIPTION:
Model, parameterize, and test a pressure reducing valve. The model is used to generate a plot of the regulation curve i.e. a plot of flow vs regulated pressure. This plot can be compared with the characteristics from the manufacturer datasheet to verify the test harness. The regulation curve displays two valve functions namely the reducing function and the relieving function. The reducing valve remains open when the pressure at the secondary port is less than a specified pressure, known as the set pressure. When the pressure at the secondary port meets or surpasses the set pressure, the reducing valve closes. In the regulation curve, the region of positive flow represents the phase when the reducing valve is open and gradually closes. The pressure reducing valve used in this example has a check valve that relieves pressure when the secondary pressure is about to surpass the set pressure. During this phase, the hydraulic fluid escapes via the check valve to the primary port keeping the secondary pressure constant at the set pressure. The region of negative flow in the regulation curve represents the phase when the pressure reducing valve is closed and the check valve opens gradually. Pressure reducing valves are used in industry to limit and maintain pressure during operations like hydraulic pressing, punching, drilling and stamping.


COMPONENT: simscapefluids
EXAMPLENAME: StratifiedHotWaterStorageTankExample
EXAMPLETITLE: Stratified Hot Water Storage Tank Example
PRODUCT: MATLAB;Simulink;Simscape;Simscape Fluids
DESCRIPTION:
Model a hot water storage tank with temperature variations from top to bottom. The tank has a cold water inlet on the bottom and a hot water outlet on the top. This design allows the top of the tank and the outgoing water to remain hot even as the tank refills and cools the bottom of the tank.


COMPONENT: simscapefluids
EXAMPLENAME: PressureReducingValveInRealTimeExample
EXAMPLETITLE: Optimize Pressure Reducing Valve Model for Real-Time Simulation
PRODUCT: MATLAB;Simscape Fluids;Simscape;Simulink
DESCRIPTION:
Identify simulation slowdowns, resolve performance issues, and configure a Simscape Fluids™ model for real-time simulation. This example uses the Pressure Reducing Valve In Punching Operation model, PressureReducingValveInPunchingOperation which is called here as the original model. In this example, you measure the simulation time, identify the factors that affect simulation speed, optimize the model, and prepare the model for code generation.


COMPONENT: simulink
EXAMPLENAME: SimulinkFunctionsAndFunctionCallersExample
EXAMPLETITLE: Simulink Functions and Function Callers
PRODUCT: MATLAB;Simulink;Stateflow
DESCRIPTION:
The model named ex_simulink_functions_and_function_callers shows multiple ways to create and call Simulink functions.


COMPONENT: simulink
EXAMPLENAME: CompareAndMergeSimulinkModelsContainingStateflowExample
EXAMPLETITLE: Compare and Merge Simulink Models Containing Stateflow
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the comparison report in MATLAB® to understand what has changed between two different designs. It shows how to view and merge the changes between two Simulink® models containing Stateflow® using the comparison report. A Stateflow license is required to run this example.


COMPONENT: simulink
EXAMPLENAME: CreateSimulinkBusObjectFromBlockExample
EXAMPLETITLE: Create Simulink.Bus Object from Bus Creator Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Create Simulink.Bus objects from a Bus Creator block that creates a bus with multiple levels of hierarchy.


COMPONENT: simulink
EXAMPLENAME: DetectFallNegativeBlockExample
EXAMPLETITLE: Detect Fall to Negative Signal Values
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Detect when a signal value decreases to a strictly negative value from a value that was greater than or equal to zero.


COMPONENT: simulink
EXAMPLENAME: ReplaceSignalBuilderBlkWithSignalEditorBlkExample
EXAMPLETITLE: Replace Signal Builder Block with Signal Editor Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Replace an existing Signal Builder block with a Signal Editor block. To store signals from Signal Builder, the example creates RoadProfilesMine.mat .


COMPONENT: simulink
EXAMPLENAME: SimplifySignalLinesExample
EXAMPLETITLE: Manage Signal Lines
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Reduce visual complexity caused by signal lines. Group signal lines into buses and visualize simulation data without sinks.


COMPONENT: simulink
EXAMPLENAME: FindNonzeroElementsUsingFindBlockExample
EXAMPLETITLE: Find Nonzero Elements in an Array
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the Find block to find nonzero elements in an array. In the following model, the block is configured to output both the one-based linear index and the value of each nonzero element.


COMPONENT: simulink
EXAMPLENAME: FindSystemReturnValuesasHandlesExample
EXAMPLETITLE: Return Values as Handles
PRODUCT: MATLAB;Simulink
DESCRIPTION:
When you make multiple function calls that require you to specify the model or block the function acts on, use handles instead of file paths to specify the model or block.


COMPONENT: simulink
EXAMPLENAME: RefreshModelBlockProgrammaticallyExample
EXAMPLETITLE: Force Refresh of Model Block Programmatically
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can programmatically refresh a Model block in a parent model that has the Port and parameter mismatch configuration parameter set to error.


COMPONENT: simulink
EXAMPLENAME: AddingHiddenBuffersWithConditionalSubsystemsExample
EXAMPLETITLE: Merged Conditional Output Signals
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The effect of a hidden buffer that might be added between a conditional subsystem and an Outport block when the Ensure outport is virtual parameter of the Outport block is cleared.


COMPONENT: simulink
EXAMPLENAME: TestExportfunctionModelSimulationUsingFunctCallExample
EXAMPLETITLE: Test Export-Function Model with Function-Call Generator Blocks
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To test and observe the export-function model behavior before generating code, simulate the completed test model.


COMPONENT: simulink
EXAMPLENAME: CreateCellArrayOfMATLABStructuresExample
EXAMPLETITLE: Create Cell Array of MATLAB Structures
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To create initialization structures for multiple bus ports, specify port handles as arguments for Simulink.Bus.createMATLABStruct . The resulting cell array of structures uses ground values.


COMPONENT: simulink
EXAMPLENAME: CreateAndAnalyzeRandomUsingScheduleEditorAPIExample
EXAMPLETITLE: Create and Analyze Random Schedules for a Model Using the Schedule Editor API
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Uses the Schedule Editor API to perform operations on the schedule. Then it uses a function to generate random schedules and analyze them in Simulation Data Inspector


COMPONENT: simulink
EXAMPLENAME: AddSignalsToARunExample
EXAMPLETITLE: Add Signals to a Run
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use Simulink.sdi.createRunOrAddToStreamedRun to add data to an existing run for a model. In this example, you add data logged using the Structure with Time format to a run that contains logged signal data.


COMPONENT: simulink
EXAMPLENAME: MemoryandClockBlockCalculateStepSizeExample
EXAMPLETITLE: Calculate and Display Simulation Step Size using Memory and Clock Blocks
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the Memory and Clock blocks to calculate and display the step size in a simulation. The Sum block subtracts the time at the previous time step, which the Memory block generates, from the current time, which the Clock block generates.


COMPONENT: simulink
EXAMPLENAME: MergeSignalsFromSwitchCaseSubsystemBlocksExample
EXAMPLETITLE: Merge Signals from Switch Case Action Subsystem Blocks
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The example model ex_switch_case_block shows how to create one signal from multiple subsystem output signals.


COMPONENT: simulink
EXAMPLENAME: AccessSimulinksdiSignalObjectsByNameExample
EXAMPLETITLE: Access Simulink.sdi.Signal Objects by Name
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use the Simulation Data Inspector programmatic interface to access Simulink.sdi.Signal objects that correspond to logged or imported data. Using the getSignalsByName function, you can specify the name of the signal you want to get from a Simulink.sdi.Run object. You can access data for individual signals and composite signals.


COMPONENT: simulink
EXAMPLENAME: SimulinkFunctionBlockInReferencedModelExample
EXAMPLETITLE: Simulink Function Block in Referenced Model
PRODUCT: MATLAB;Simulink
DESCRIPTION:
A parent model that contains a Function Caller block and a referenced model that contains a Simulink Function block. The referenced model must follow export-function model requirements.


COMPONENT: simulink
EXAMPLENAME: ClickAnnotationtoChangeExample
EXAMPLETITLE: Click Annotation to Change Parameter Value
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Invoke a callback using an annotation click function. In the example, you change the parameter value of a block to the value shown on an annotation.


COMPONENT: simulink
EXAMPLENAME: DetectValuesInDynamicallySpecifiedIntervalExample
EXAMPLETITLE: Detect Signal Values Within a Dynamically Specified Interval
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Detect when an input signal falls within a dynamically specified interval. The interval is defined by two Sine Wave blocks. When the input to the Interval Test Dynamic block falls between those sine waves, the Interval Test Dynamic block outputs true ( 1 ).


COMPONENT: simulink
EXAMPLENAME: DiscreteTimeIntegrationInFuelSysExample
EXAMPLETITLE: Discrete-Time Integration Using the Forward Euler Integration Method
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The model sldemo_fuelsys uses a Discrete-Time Integrator block in the subsystem fuel_rate_control/airflow_calc .


COMPONENT: simulink
EXAMPLENAME: NavigateToExternallyStoredRequirementFromAModelExample
EXAMPLETITLE: Navigate to Externally Stored Requirements from a Model
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Navigate to linked requirements that are stored in an external document from a model using the Requirements Viewer app in Simulink®. If a model object is linked to a requirement that is stored in an external document, such as a Microsoft® Word or Microsoft Excel® file, or an IBM® Rational® DOORS® or IBM DOORS Next project, then you can navigate to the requirement in the external document from the associated block in Simulink.


COMPONENT: simulink
EXAMPLENAME: AccessDatasetElementByNameExample
EXAMPLETITLE: Access Dataset Elements By Name
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The model GetDatasetElements logs data generated by three source blocks using the Dataset format. In the model, the signals coming from the Sine Wave block and the Constant block share the same name. The signal coming from the Pulse Generator block has a unique name.


COMPONENT: simulink
EXAMPLENAME: DataTypeInheritRulesAddSlopeScalingSingleWordExample
EXAMPLETITLE: Data Type Inheritance Rules for Add with Slope Scaling When Ideal Result Is Single Word
PRODUCT: MATLAB;Simulink;Fixed-Point Designer
DESCRIPTION:
For an addition operation, you can specify a data type inheritance rule separately for the accumulator type and the output data type. For this example, assume that both inputs to the sum block are single word and use slope scaling. The first input has a data type of ufix16_Sp4, meaning a 16-bit unsigned fixed-point type with a slope of 0.4. The second input has a data type of ufix16_En6, meaning a 16-bit unsigned fixed-point type with 6 bits of fraction. See Fixed-Point Data in MATLAB and Simulink for more information on this notation.


COMPONENT: simulink
EXAMPLENAME: ProgrammaticallyAddDataFromFileToPlaybackBlockExample
EXAMPLETITLE: Programmatically Add Data from File to Playback Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The PlaybackRecord model contains an empty Playback block connected to a Record block. Using the set_param function, you can programmatically add new signals to the Playback block by setting the value of the Signals parameter to a Simulink.playback.Signal object that contains information about the signals you want to add to the block. Once you add data, the Playback block loads external data into the model during simulation. The Record block logs output data from the Playback block.


COMPONENT: simulink
EXAMPLENAME: ProgrammaticallyAddAndConnectADashboardBlockExample
EXAMPLETITLE: Programmatically Add and Connect a Dashboard Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Programmatically add Dashboard blocks to a model and connect them to elements in the model. The example adds a Dashboard Scope block and a Slider block to the vdp model and connects and configures the blocks.


COMPONENT: simulink
EXAMPLENAME: AccessSignalLoggingDataInASimulinkSimulationOutputObjectExample
EXAMPLETITLE: Access Signal Logging Data in Simulink.SimulationOutput Object
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Open the vdp model which models the second-order Van der Pol differential equation. For more information about the model, see Van der Pol Oscillator.


COMPONENT: simulink
EXAMPLENAME: ModifyThenResetRunNamingRuleExample
EXAMPLETITLE: Modify then Reset Run Naming Rule
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the Simulation Data Inspector API to modify the Simulation Data Inspector run naming rule, check a run's name, reset the run naming rule to its default, and check the run naming rule.


COMPONENT: simulink
EXAMPLENAME: CallingPythonFunctionFromSimulinkExample
EXAMPLETITLE: Call Python Function Using MATLAB Function and MATLAB System Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Call a Python® function in Simulink® that sorts random numbers using a Python® sorting function and two different blocks: the MATLAB Function block and MATLAB System block. For more on using Python in MATLAB®, see Access Python Modules from MATLAB - Getting Started.


COMPONENT: simulink
EXAMPLENAME: InitializeFunctionAndTerminateFunctionBlockExample
EXAMPLETITLE: Reading and Writing States with the Initialize Function and Terminate Function Blocks
PRODUCT: MATLAB;Simulink
DESCRIPTION:
In this example, the Initialize Function block uses the State Writer block to set the initial condition of a Discrete Integrator block to 10.


COMPONENT: simulink
EXAMPLENAME: SupressDiagnosticMessagesProgrammaticallyExample
EXAMPLETITLE: Suppress Diagnostic Messages Programmatically
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Access simulation metadata to manage diagnostic suppressions and to restore diagnostic messages programmatically.


COMPONENT: simulink
EXAMPLENAME: ProgrammaticallyMigrateSingleModelToUseDictionaryExample
EXAMPLETITLE: Programmatically Migrate Single Model to Use Dictionary
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Programmatically change the data source of a Simulink model from the base workspace to a new data dictionary.


COMPONENT: simulink
EXAMPLENAME: GenerateCodeForExportfunctionModelWithRatebasedModelExample
EXAMPLETITLE: Generate Code for Export-Function Model with Rate-Based Model
PRODUCT: MATLAB;Simulink
DESCRIPTION:
When you generate code for an export-function model that references a rate-based model, the generated code for the rate-based model is integrated into the generated code for the export-function model.


COMPONENT: simulink
EXAMPLENAME: CreateOutputBusElementPortExample
EXAMPLETITLE: Create Output Bus Element Port
PRODUCT: MATLAB;Simulink
DESCRIPTION:
In a model component, each output bus element port is represented by one or more Out Bus Element blocks.


COMPONENT: simulink
EXAMPLENAME: DefinePropertySectionsExample
EXAMPLETITLE: Define Property Sections
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Customizes the block dialog box for a MATLAB System block by specifying property display names and modifying the getPropertyGroupImpl method. This customization is demonstrated with the System object AddPropertySections .


COMPONENT: simulink
EXAMPLENAME: BoostConverterUsingPWMExample
EXAMPLETITLE: PWM Control of a Boost Converter
PRODUCT: Simulink;Simscape Electrical
DESCRIPTION:
Control a boost converter using the PWM block in Simulink. the boost converter in this model uses the Boost Converter (Simscape Electrical) block from the Simscape™ Electrical™ library.


COMPONENT: simulink
EXAMPLENAME: DisplaySignalValueOnGaugeExample
EXAMPLETITLE: Display Signal Value on Gauge
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Connect a logged signal in a Simulink model to a gauge UI component to display the value of the signal while the simulation runs.


COMPONENT: simulink
EXAMPLENAME: IdentifyPerformanceSlowdownsUsingTheSimulinkProfilerExample
EXAMPLETITLE: Identify Source of Performance Slowdown Using Simulink Profiler
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Uses a modified version of the model sldemo_fuelsys_dd, which implements a fault-tolerant fuel control system, with a slowdown artificially inserted into the model. Use the Simulink Profiler to identify and resolve the performance issue.


COMPONENT: simulink
EXAMPLENAME: CallSimulinkFunctionsFromMATLABSystemBlockExample
EXAMPLETITLE: Call Simulink Functions from a MATLAB System Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Two Simulink® Functions conditionally called by a MATLAB System block using the nontunable properties of the System object®.


COMPONENT: simulink
EXAMPLENAME: PermuteDimensionsBlockExample
EXAMPLETITLE: Permute Array Dimensions
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the Permute Dimensions block to permute the first and third dimensions of a 3-by-4-by-5 input array.


COMPONENT: simulink
EXAMPLENAME: UnboundedVariableSizeSignalExample
EXAMPLETITLE: Unbounded Variable-Size Signal Basic Operations
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use unbounded variable-size signals in Simulink® modeling. For more information about the general concept of unbounded variable-size signals, see Unbounded Variable-Size Signal.


COMPONENT: simulink
EXAMPLENAME: GetModelDescriptionExample
EXAMPLETITLE: Get Model Description
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Get the description of the vdp model without loading the model or creating a Simulink.MDLInfo object for it.


COMPONENT: simulink
EXAMPLENAME: IntegratePythonGPSTextMsgParsingAlgInSimulinkUsgPyImprExample
EXAMPLETITLE: Integrate Python Packages to Parse NMEA GPS Messages Using Python Importer
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use Python® Importer to import a Python package containing algorithms to parse NMEA GPS messages into Simulink®.


COMPONENT: simulink
EXAMPLENAME: MATLABStructurefromBusPortandPartialStructureExample
EXAMPLETITLE: Create MATLAB Structure from Bus Port and Partial Structure
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Create a MATLAB structure based on a port that connects to a bus signal. Use a partial structure to specify values for a subset of the bus elements in the bus that connects to the port.


COMPONENT: simulink
EXAMPLENAME: FloatingPointDiscreteDerivativeBlockExample
EXAMPLETITLE: Discrete-Time Derivative of Floating-Point Input
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the Discrete Derivative block to compute the discrete-time derivative of a floating-point input signal. The unfiltered discrete-time derivative is compared to a filtered discrete-time derivative that is computed by the Discrete Filter block.


COMPONENT: simulink
EXAMPLENAME: CheckWhetherModelContainsSpecificBlockExample
EXAMPLETITLE: Check Whether Model Contains Specific Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The getSimulationBlockHandle function returns the handle of the block specified in the function input arguments. Valid handles are greater than zero. If the function does not find the block, it returns -1.


COMPONENT: simulink
EXAMPLENAME: BumplessControlTransferWithA2DOFPIDControllerExample
EXAMPLETITLE: Bumpless Control Transfer with a Two-Degree-of-Freedom PID Controller
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use signal tracking to achieve bumpless control transfer in a system that switches between a PID Controller (2DOF) block and another controller.


COMPONENT: simulink
EXAMPLENAME: ViewDeadZoneOutputOnSineWaveExample
EXAMPLETITLE: View Dead Zone Output on Sine Wave
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The effect of the Dead Zone block on a sine wave. The model uses a dead zone lower limit of -0.5 and an upper limit as 0.5 . Set these values through the parameters Start of Dead Zone and End of Dead Zone .


COMPONENT: simulink
EXAMPLENAME: RemoveSignalFromDatasetObjectExample
EXAMPLETITLE: Remove Signal from Dataset Object
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Open the model LogDataDatasetFormat. The model logs the data generated by three source blocks using the Dataset format.


COMPONENT: simulink
EXAMPLENAME: TemperatureControlSystemCommunicatingWithMessagesExample
EXAMPLETITLE: Temperature Control System Communicating with Messages
PRODUCT: MATLAB;Simulink;SimEvents;Stateflow
DESCRIPTION:
Distributed control of room temperatures by processing messages from room thermostats and communicating control commands using messages to different receivers.


COMPONENT: simulink
EXAMPLENAME: GetAllSignalsInARunExample
EXAMPLETITLE: Get All Signals in a Run
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use the getAllSignals function to access Simulink.sdi.Signal objects for each signal in a Simulink.sdi.Run object when you want to analyze all the data in the run. This example shows how to access and inspect signal data logged in the sldemo_autotrans model.


COMPONENT: simulink
EXAMPLENAME: ConfigureSimulationUsingSimulinkConfigSetObjectExample
EXAMPLETITLE: Configure Simulation Using Simulink.ConfigSet Object
PRODUCT: MATLAB;Simulink
DESCRIPTION:
A Simulink.ConfigSet object stores a set of model configuration parameter values. You can specify a Simulink.ConfigSet object as an input to the sim function. The configuration set from the object is applied to the model for the simulation. After simulation, the original configuration set is restored in the model.


COMPONENT: simulink
EXAMPLENAME: VerticalMatrixConcatenationInMatrixConcatenateBlockExample
EXAMPLETITLE: Vertically Concatenate Matrices
PRODUCT: MATLAB;Simulink
DESCRIPTION:
When a Matrix Concatenate block receives 2-D matrices with the same number of columns, you can vertically concatenate the matrices, placing them on top of each other in the output matrix. To vertically concatenate the matrices, set the Concatenate dimension block parameter to 1 .


COMPONENT: simulink
EXAMPLENAME: CheckRunIDValidityExample
EXAMPLETITLE: Check Run ID Validity
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Check whether a run ID is valid. You can use Simulink.sdi.isValidRunID to ensure you have valid data throughout your script.


COMPONENT: simulink
EXAMPLENAME: NoncontiguousDataPortIndicesMultiportSwitchBlockExample
EXAMPLETITLE: Noncontiguous Values for Data Port Indices of Multiport Switch Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use a Multiport Switch block that specifies noncontiguous integer values for data ports. The values of the indices are visible on the data port labels. You do not have to open the block dialog box to determine which value maps to each data port.


COMPONENT: simulink
EXAMPLENAME: AddBlockUsingUniqueNameExample
EXAMPLETITLE: Add Block Using Unique Name
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Add a Scope block from the Simulink® library to the model vdp. Because the vdp model already contains a block named Scope, use the MakeNameUnique option to ensure that the new block name is unique.


COMPONENT: simulink
EXAMPLENAME: ChangeStateOfSwitchBlockUsingRockerSwitchBlockExample
EXAMPLETITLE: Change State of Switch Block Using Rocker Switch Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use a Rocker Switch block to change the state of a Switch block during simulation. The model rockerSwitch contains a Rocker Switch block connected to a Constant block named Control Input. When the Rocker Switch block is on, the value of the Control Input block is 1, and the Switch block outputs the value 5. When the Rocker Switch block is off, the value of the Control Input block is 0, and the Switch block outputs a value of 0.


COMPONENT: simulink
EXAMPLENAME: RestoreADiagnosticForASpecifiedBlockExample
EXAMPLETITLE: Restore a Diagnostic for a Specified Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To restore a suppressed diagnostic on a specified block, use getDiagnosticObjects.m , suppressor_script.m , and the Suppressor_CLI_Demo.slx model. The getDiagnosticObjects.m function queries the simulation metadata to access diagnostics that were thrown during simulation. The suppressor_script.m script contains the commands for suppressing and restoring diagnostics to the Suppressor_CLI_Demo model. Open the model. To access Simulink.SimulationMetadata class, set the ReturnWorkspaceOutputs parameter value to 'on' . Simulate the model.


COMPONENT: simulink
EXAMPLENAME: FindExistingAnnotationsProgrammaticallyExample
EXAMPLETITLE: Find and Modify Annotations
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Find the annotations in the vdp model and modify the properties of one of the annotations programmatically.


COMPONENT: simulink
EXAMPLENAME: ConfigureSimulationToLoadContinuousInputSignalExample
EXAMPLETITLE: Configure Simulation to Load Continuous Input Signal
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the setExternalInput function to specify external data for the simulation configuration stored in a Simulink.SimulationInput object. Then, configure the Inport block to load the input data as a continuous signal using the setBlockParameter function. Finally, run the simulation using the Simulink.SimulationInput object.


COMPONENT: simulink
EXAMPLENAME: CreateLogarithmLookupTableExample
EXAMPLETITLE: Create a Logarithm Lookup Table
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the n-D Lookup Table block to create a logarithm lookup table. The lookup table allows you to approximate the common logarithm (base 10) over the input range [1,10] without performing an expensive computation.


COMPONENT: simulink
EXAMPLENAME: AssignSignalValuesToABusExample
EXAMPLETITLE: Assign Signal Values to Bus Elements
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To replace the value of a bus element, use a Bus Assignment block. You do not need to use Bus Selector and Bus Creator blocks to change the value of a bus element.


COMPONENT: simulink
EXAMPLENAME: MarkSignalsForLoggingWithLineHandlesExample
EXAMPLETITLE: Mark Signals for Logging Using Line Handles
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Load the model slexAircraftExample. and use get_param to get handles for the signals in the model. Then, use the line handles to mark signals of interest for logging.


COMPONENT: simulink
EXAMPLENAME: ProgrammaticallyGetBusHierarchyAndVirtualityExample
EXAMPLETITLE: Get Bus Hierarchy and Virtuality Programmatically
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To programmatically get the hierarchy and virtuality of a bus in a compiled model, query these parameters using the get_param function:


COMPONENT: simulink
EXAMPLENAME: CustomizeSystemDialogBoxUsingMaskEditorExample
EXAMPLETITLE: Create and Customize MATLAB System Icon and Dialog Box Using Mask Editor
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Create and customize the icon and dialog box of a MATLAB System block MaskEditorDialogBox using the Mask Editor.


COMPONENT: simulink
EXAMPLENAME: SimulateCustomCodeInSeparateProcessExample
EXAMPLETITLE: In-Process and Out-of-Process Simulation
PRODUCT: MATLAB;Simulink
DESCRIPTION:
When simulating a model containing custom C or C++ code, you have the option to run the custom code in a separate process outside of MATLAB. This process is called out-of-process simulation . This option may be useful when debugging your custom code. By running in a separate process, problems with the custom code do not cause MATLAB to crash, and you can more easily debug and resolve such problems. Problems can arise due to unexpected exceptions in the custom code or errors in the interface between Simulink and the custom code.


COMPONENT: simulink
EXAMPLENAME: SpecifyHowToHandleVarientsExample
EXAMPLETITLE: Specify How To Handle Variants
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use the options in the Simulink.SimulationData.ModelLoggingInfo.createFromModel function to specify how model components like variants and model references should be handled. For example, use the Variants name-value argument to create a model logging override object that includes logged signals in all variants of the model sldemo_variant_subsystems.


COMPONENT: simulink
EXAMPLENAME: SaveAndRestoreASetOfStreamedSignalsExample
EXAMPLETITLE: Save and Restore a Set of Logged Signals
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the Simulink.HMI.InstrumentedSignals object to save a set of logged signals to restore after running a simulation with a different signal logging configuration.


COMPONENT: simulink
EXAMPLENAME: CheckSignalAmplitudeWithCheckDynamicLowerBoundBlockExample
EXAMPLETITLE: Check Signal Lower Bound with Check Dynamic Lower Bound Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Using the Check Dynamic Lower Bound block, you can check if an input signal falls below a changing lower bound during a simulation.


COMPONENT: simulink
EXAMPLENAME: RateBasedModelWithScheduledSubsystemBlocksExample
EXAMPLETITLE: Rate-Based Model with Scheduled Subsystem Blocks
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The completed rate-based model ex_rate_based_model has two scheduled atomic Subsystem blocks. The Subsystem blocks are scheduled by setting their Sample time parameters to a non-zero positive number.


COMPONENT: simulink
EXAMPLENAME: OpenExampleModelExample
EXAMPLETITLE: Open Example Model
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The model IterateSum uses a while-iterator subsystem to implement an iterative summing algorithm. The while-iterator subsystem has two inputs: a sine wave signal and a pulse signal. The pulse provides the initial logical condition that determines whether the while-iterator subsystem is enabled in each time step. A Dashboard Scope block is connected to the Iteration Number signal to display the output of the while-iterator subsystem.


COMPONENT: simulink
EXAMPLENAME: UseLogicalOperatiorToFindElementsInDatasetObjectExample
EXAMPLETITLE: Use Logical Operator to Find Elements in Dataset Object
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the find function to access a collection of elements in a Simulink.SimulationData.Dataset object using the logical operator '-or'. The model sldemo_clutch, which models a rotating clutch system, logs ten signals in Dataset format. For more information about the model, see Building a Clutch Lock-Up Model.


COMPONENT: simulink
EXAMPLENAME: OutputMultipleSignalsWithOnePortExample
EXAMPLETITLE: Output Multiple Signals with One Port
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To provide multiple signals to one output port, use an Out Bus Element block for each signal that you want in the output.


COMPONENT: simulink
EXAMPLENAME: CreateBusHierarchyAtOutputPortExample
EXAMPLETITLE: Create Multilevel Bus Hierarchy at Output Port
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The default Out Bus Element block nests the output element in a bus. When the output port has many elements, organize the elements in nested buses within the output bus.


COMPONENT: simulink
EXAMPLENAME: ChangeGainUsingCallbackButtonBlockExample
EXAMPLETITLE: Change Gain Value Using Callback Button Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use a Callback Button block to control a parameter value before or during simulation. For example, in the model callbackGain, three Callback Button blocks are configured to set the Gain parameter of the Gain block to a value of 5, 10, or 15.


COMPONENT: simulink
EXAMPLENAME: ControlExecutionOfDelayBlockWithEnablePortExample
EXAMPLETITLE: Control Execution of Delay Block with Enable Port
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Enable or disable the execution of the Delay block using an enable port. In this model, a ramp input signal feeds into a Delay block. The execution of the block is controlled by an enabling signal from the Pulse Generator block.


COMPONENT: simulink
EXAMPLENAME: ConfigureSimulationUsingSimulinkSimulationInputObjectExample
EXAMPLETITLE: Configure Simulation Using Simulink.SimulationInput Object
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use a Simulink.SimulationInput object to store the configuration for a simulation separate from the model you simulate. The configuration in the Simulink.SimulationInput object is applied to the model for the simulation. After simulation, any model settings that were changed revert to the original value.


COMPONENT: simulink
EXAMPLENAME: CustomSizePropertyExample
EXAMPLETITLE: Custom Size Property Example
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Uses a MATLAB Function block with an input variable that adjusts its size based on the value of a base workspace variable.


COMPONENT: simulink
EXAMPLENAME: MultidimMatrixConcatenationInMatrixConcatenateBlockExample
EXAMPLETITLE: Perform Multidimensional Matrix Concatenation
PRODUCT: MATLAB;Simulink
DESCRIPTION:
When a Matrix Concatenate block receives 2-D matrices, you can perform multidimensional matrix concatenation. To do so, set the Concatenate dimension block parameter to 3 .


COMPONENT: simulink
EXAMPLENAME: ScalarExpansionWithTheCoulombViscousFrictionBlockExample
EXAMPLETITLE: Scalar Expansion with the Coulomb and Viscous Friction Block
PRODUCT: MATLAB;Simulink
DESCRIPTION:
A model with a scalar input to a Coulomb & Viscous Friction block that uses scalar expansion to output a vector.


COMPONENT: simulink
EXAMPLENAME: ExploreParameterPrecisionLossExample
EXAMPLETITLE: Explore Parameter Precision Loss
PRODUCT: MATLAB;Simulink;Fixed-Point Designer
DESCRIPTION:
Use the Parameter Quantization Advisor to explore parameter precision loss in a feedback controller model.


COMPONENT: simulink
EXAMPLENAME: AddDataToSimulationMetadataExample
EXAMPLETITLE: Add Data to Simulation Metadata
PRODUCT: MATLAB;Simulink
DESCRIPTION:
The Simulink.SimulationOutput object contains a Simulink.SimulationMetadata object that captures information about the simulation. You can specify additional information about the simulation in the UserData and UserString properties. For example, you can save the Simulink.SimulationInput object used to configure the simulation in the UserData property and specify the UserString as a description of the simulation.


COMPONENT: simulink
EXAMPLENAME: IdentifyAndResolveUnderspecifiedDataTypesExample
EXAMPLETITLE: Identify and Resolve Underspecified Data Types
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Use the configuration parameter Underspecified data types to identify and resolve an underspecified data type.


COMPONENT: simulink
EXAMPLENAME: ReturnNamesOfElementsExample
EXAMPLETITLE: Return Names of Elements
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Simulate the model sldemo_clutch, which models a rotating clutch system. The signal logging data is contained in the Dataset object named sldemo_clutch_output.


COMPONENT: simulink
EXAMPLENAME: ScheduleEditorWithSubsystemPartitionsExample
EXAMPLETITLE: Schedule a Rate-Based Model Using the Schedule Editor
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Partition a rate-based model using the Schedule Editor. Partitions are the components of the model that can execute independently. In this example, we convert the subsystems into partitions and view and edit their schedule.


COMPONENT: simulink
EXAMPLENAME: SwitchBtwnSetsOfParamsDuringSimAndCodeExecExample
EXAMPLETITLE: Switch Between Sets of Parameter Values During Simulation and Code Execution
PRODUCT: MATLAB;MATLAB Coder;Simulink;Simulink Coder
DESCRIPTION:
Switch between independent sets of values for the same block parameters by storing the sets in an array of structures.


COMPONENT: simulink
EXAMPLENAME: ExplicitlyDefineBusToVectorConversionsExample
EXAMPLETITLE: Explicitly Define Bus-To-Vector Conversions
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To more easily identify unexpected conversions, specify acceptable bus-to-vector conversions with Bus to Vector blocks.


COMPONENT: simulink
EXAMPLENAME: CreateNonvirtualBusAtInterfaceExample
EXAMPLETITLE: Create Nonvirtual Buses at Interfaces
PRODUCT: MATLAB;Simulink
DESCRIPTION:
To create a nonvirtual bus at an interface, connect the bus elements to Out Bus Element blocks and specify that the output bus is nonvirtual.


COMPONENT: simulink
EXAMPLENAME: DisplaySignalValueExample
EXAMPLETITLE: Display Signal Value
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use the Display block to show the value of a signal during simulation. For example, simulate the model displayRamp to see the value of the rampSig signal.


COMPONENT: simulink
EXAMPLENAME: BlockExecutionOrderPropertyExample
EXAMPLETITLE: Set Execution Order Property for Block to Execute First
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Set the execution order of a Data Store Read block to execute first. The execution order specification allows the block to access the data stored in a Data Store Memory block at a previous time step of model simulation.


COMPONENT: simulink
EXAMPLENAME: UseDesignEvolutionManagerWithTheFixedPointToolExample
EXAMPLETITLE: Use Design Evolution Manager with Fixed-Point Tool
PRODUCT: MATLAB;Simulink;Fixed-Point Designer
DESCRIPTION:
Use the Design Evolution Manager to manage different design versions while using the Fixed-Point Tool and the Lookup Table Optimizer to convert a floating-point model to use fixed-point data types. While this example demonstrates the fixed-point conversion use case, you can use the Design Evolution Manager to organize and analyze any work in which you create different versions of files in your design.


COMPONENT: simulink
EXAMPLENAME: OverrideSignalLoggingSettingsForASpecificSignalExample
EXAMPLETITLE: Override Signal Logging Settings for Specific Signal
PRODUCT: MATLAB;Simulink
DESCRIPTION:
You can use Simulink.SignalData.SignalLoggingInfo objects to programmatically override logging settings for specific signals. For example, you can create a Simulink.SimulationData.SignalLoggingInfo object to override the signal logging settings such that only one of several signals marked for logging is logged.


COMPONENT: simulink
EXAMPLENAME: TwoInputANDLogicExample
EXAMPLETITLE: Two-Input AND Logic
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Builds a two-input AND function, which returns 1 when both input elements are 1, and 0 otherwise. To implement this function, specify the Truth table parameter value as [0; 0; 0; 1] The portion of the model that provides the inputs to and the output from the Combinatorial Logic block might look like this:


COMPONENT: simulink
EXAMPLENAME: GenerateAndPopulateDatasetRootLevelExample
EXAMPLETITLE: Generate and Populate Dataset for Root-Level Inport Blocks
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Create a timeseries dataset with elements for the four root-level Inport blocks in a model. Use that dataset as a basis for creating a dataset to load signal data into the model.


COMPONENT: simulink
EXAMPLENAME: MultithreadedForEachExample
EXAMPLETITLE: Multithreaded Simulation Using For Each Subsystem
PRODUCT: MATLAB;Simulink
DESCRIPTION:
Speed up execution of a model on multiple cores using a For Each Subsystem in Rapid Accelerator simulation.


