Simscape Power Systems Converting to C Code

ساخت وبلاگ

Converting to C Code

You can convert Simscape Power Systems models into C code using Simulink Coder. Converting Simscape Power Systems models to C code enables them to be used for tasks such as HIL testing and optimization where batch simulations are performed. Converting to C code also enables you to share protected models.

Testing Without Hardware Prototypes

Simscape Power Systems models enable you to test embedded control algorithms and controller hardware without using hardware prototypes. In addition to software-in-the-loop (SIL) and processor-in-the-loop (PIL) tests, converting your Simscape Power Systems models to C code lets you run hardware-in-the-loop (HIL) tests. This enables you to test embedded controllers without endangering equipment and personnel, and increases your confidence that the system will behave as specified when you connect the controller to the real system.

Workflow for testing embedded hardware and software without prototypes.
Workflow for testing embedded software and hardware without prototypes. You convert the algorithm to C code for PIL tests, and convert the Simscape model to C code for HIL tests.

Running Batch Simulations

Many engineering tasks, such as optimizations and parameter sweeps, require running many sets of simulations. Converting your Simscape Power Systems model to C code enables the efficient execution of these tasks. You can accelerate individual simulations, and run batches of simulations in parallel over multiple processors or distributed across a computing cluster.

Hydro-Quebéc Models Wind Farm and Grid (User Story)
Teams saved millions of dollars in hardware costs, verified behavior under hundreds of operating conditions and faults, and evaluated the wind farm’s impact on grid stability.

 
 
 
 
 

Sharing Models

Simscape helps you make efficient use of your purchased software when sharing models that use Simscape Power Systems. It also provides methods of sharing models while protecting your intellectual property.

Accessing Capabilities in Simscape Add-on Products

Using Simscape Editing Mode, Simscape users can perform many tasks on models that use Simscape add-on products, even if they have not purchased the add-on products. These tasks include viewing, simulating, and changing parameter values in the model. As a result, your team can leverage advanced components and capabilities from the entire Simscape product family without requiring that each engineer purchase a license for each Simscape add-on product.

Working with Simscape Models
TaskModel Developer
(Purchases Simscape and Simscape add-on products)
Model User
(Purchases Simscape)
Simulate
Log data and plot results
Change numerical parameters
Generate code with Simulink Coder
View Simscape Multibody animations
Access PowerGUI functions and settings
Change block parameterization options 
Make or break physical connections 

Sharing Protected Models

You can share Simscape Power Systems models with other users while protecting your intellectual property. You can protect custom components defined using the Simscape language as well as subsystems containing Simscape Power Systems components. Sharing these models lets other users run simulations, vary parameters, and convert them to C code, but prevents them from seeing the original implementation.

Specialized Technology

Simscape Power Systems includes both Simscape Components and Specialized Technology libraries. You can create and simulate systems using either library, and a single Simscape Power Systems model can contain components from both libraries.

Simscape Components libraries use the full range of Simscape technology, and the component models are written in the Simscape language. You can directly connect these models with the Simscape Foundation library components and with components in the Simscape product family.

Specialized Technology libraries provide components and technology specifically developed for electrical power systems. Specialized Technology models contain a large number of models that use their own electrical domain. You ultimately connect these blocks to other Simscape elements through Simulink® signals.

 

Reference: SimPowerSystems

مهندسی برق قدرت...
ما را در سایت مهندسی برق قدرت دنبال می کنید

برچسب : simscape power systems,simscape power systems matlab,simscape power systems examples,simscape power systems tutorial, نویسنده : electrical-power-enga بازدید : 243 تاريخ : يکشنبه 11 مهر 1395 ساعت: 14:57