Simulink using Multiple Simulation

This blog is about Simulink simulation with the method of Multiple Simulation.
You are welcomed to chat about it and if you like this blog, do not forget to give me a like.

Welcome to see my homepage and contact me: NicholasYe’s Homepage.


1. Build up a simulation model

  • First of all, you need to build up a simulink model and define a variable which you need to change in the model.

For instance, I build up a simple RC circuit in series with a square wave voltage source to see the reaction of voltage change about the capacitor.
And then I need to change the period(or frequency) to see what’s going to happen about the voltage.

Thus period is the variable of the model, and click “apply”

图片.png

2. Open the Multiple Simulation

  1. At here you will find Multiple Simulation and then you will have this diagram.

图片.png

  1. Click “Plus” to add a new design study and you can rename it.

图片.png

  1. And then you should add variable and set up the range or the specific number you want to simulate with. The variable name should be totally the same with the one you have set in the model!!
    • you have different ways of setting the number, for example:
    • [1,4,9] , ["on","off"], rand(1,10) and so on.

图片.png

  1. Then you should click "run" in Multiple Simulation and then you will find the "run" in simulation has changed into "run all". Just click it to begin simulation. And you can see the statue in Simulation Manager.

图片.png

图片.png

3. Use Simulation Data Inspector to see the data

  1. Click the signal line of the scope and Log Selected Signal

图片.png

  1. Then you can open Simulation Data Inspector to see different signal wave with different variable(period), that’s all.

图片.png


Please clearly mark the source of the article in the process of reproducing it! Respect for originality and intellectual property rights, thanks!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值