Seth on Simulink

June 13th, 2008

Announcing SimElectronics!

In early April, our physical modeling team released a new add-on for Simulink, SimElectronics. SimElectronics extends Simscape by adding tools for modeling electronics and electromechanical systems.

What is Simscape?

Simscape is a platform for physical modeling. Instead of connecting together blocks that define the equations of your system, Simscape and its add-on tools enable modeling and simulation of multidomain physical systems, such as those with mechanical, hydraulic, and electrical components. The connections between physical modeling elements are not signals, the connections don’t represent data flow. They represent physical connections between things like bodies and joints, or resistors and transistors.

What’s new with SimElectronics?

SimElectronics adds components for modeling electronics and electromechanical systems.

  • Includes semiconductors, actuators, sensors, and IC elements
  • Includes the ability to simulate in PWM or Averaged mode to balance the level of fidelity vs simulation speed
  • Import SPICE net lists containing Transistors, JFET, diode, sources, and passive SPICE components

I think it helps to look at the web demos to understand what you might do with SimElectronics. These demos have great SVG published models that you can explore. Start with this plant model of a DC motor connected to a worm gear as part of a linear actuator. This plant model might be your first step in developing a controller for such a system.

DC Motor and linear actuator plant model
(click for a WebView of the model)

Next, you might add an H-Bridge, a current controller, and a speed controller for the linear actuator. Take a look at this plant model with a controller.

DC Motor and linear actuator with a controller
(click for a WebView of the model)

This model would show that you have good controllers, but notice the controllers consist of transfer function pre-filters and PI controllers with Simulink integrator blocks. These controllers can now be modeled using SimElectronics components. The final step in the series would be a validation model with the op-amps, resistors and capacitors that would implement the controller you designed.

DC Motor and linear actutor with a implementation model of the controller
(click for a WebView of the model)

This model uses a 10 kHz PWM waveform to achieve a high fidelity simulation. Download a trial of SimElectronics if you think this type of workflow would be useful to you.

Video of SimElectronics in action

Steve Miller has made a video demo of Modeling an Electromechanical System. I recommend watching this to get the SimElectronics experience.

Now it’s your turn

Are you using the physical modeling tools? Have you tried SimElectronics? Post a comment here and tell us about it.

6 Responses to “Announcing SimElectronics!”

  1. mohsen replied on :

    dear sir, tnx for ur very good helping,
    I wanna exactly now from which release this new toolbox(simelectrinics) is add on and how I can install it on previous versions
    thank u in advance

  2. Seth replied on :

    @mohsen - SimElectronics was released as part of R2008a+, and is only compatible with that release.

  3. Bilal Majeed replied on :

    Dear Sir,
    Thanks for your release.That was realy helpfull. Sir i have a little problem in connecting my simulink block to my GUI. In actual my requirement is to get data from my simulink in real time and plot it in real time on my GUI AXES. like on scope of simulink block. Please help me out.
    Thanks in advance

    Regards,
    Bilal

  4. ljp replied on :

    very good

  5. fccu replied on :

    Great post! Thanks for sharing!! :D

  6. arun kumar replied on :

    dear seth
    i have been involved in developing and simulating asynchronous systems for my VLSI lab.
    in asynchronous systems i have to redefine the basic gates and,or,xor etc.

    so i had build my own customized basic blocks which i did using the existing blocks.

    everytime i need to change the size say 2 bit gate to 3 bit gate i have to go to the block replicate the existing logic.

    Is there a way build a system which takes the bit size as input and then generates the required block … just like we vary the size of ordinary and gate.

    basically i want to build a asynchronous library of my own. Where do i start ?

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Seth Popinchalk is an Application Engineer for The MathWorks. He writes here about Simulink and other MathWorks tools used in Model-Based Design.
  • Mohamamd: Hi Suth, I try to simulate a load tap-changing transformer in simulink but its control part has to be...
  • Han Geerligs: Hello Guy, thanks for the clarificaton and link. However in the documentation I am missing the...
  • Guy: @Han, you probably already know, but I think it is good to share with everyone. To zoom in use the key...
  • Han Geerligs: Hi Seth, Once again I’d like to point out that my biggest accelerator is using mouse and keyboard...
  • XaL: Hi, thanks for the tips. As someone wrote in http://blogs.mathwor ks.com/seth/2009/03/ 13/new-%C2%A0rele...
  • Uba osy: Hi, in the introductory example for fuzzy logic toolbox it was noted that using non fuzzy means, you could...
  • Prashant: How can I have same example but instead AC(1 to 10V 50 or 60Hz) and DC(0.5 to 10 V) then adding AC+DC but...
  • adrian chavarro: Great tool, for educational and sicentific, simulation. I would like to know where can i place a...
  • Ashish Sadanandan: @wei, I was talking about the case where the compiler would perform the ‘model_Xdim...
  • wei: @Ashish, I agree with your observation on compiler optimization but fail to see why Han’s code would be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.