西莫电机圈

 找回密码
 立即注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

查看: 4973|回复: 7

[分享] 谁用6.26.1、6.26.2、6.27与Simulink可以联合仿真?

[复制链接]

该用户从未签到

发表于 2009-5-24 13:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
有人用6.26.1、6.26.2、6.27与Simulink可以实现联合仿真吗?我做了有错误

我用6.26可以联合,但是上面说的这三个版本不行,但是必须用这三个版本中的一个(需要一个特殊功能)

谢谢关注。
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过

该用户从未签到

发表于 2009-5-24 14:45 | 显示全部楼层

                               
登录/注册后可看大图
The vector control of an Interior Permanent Magnet (IPM) Brushless DC motor involves running both Simulink and MagNet transient solvers simultaneously.
Co-simulations allow the strengths of two separate simulators to be combined, in this case the powerful system-level simulation of Simulink with the dynamic electrical machine analysis of MagNet. A continuous data exchange between the two keeps the shared quantities (voltages and currents) synchronized.
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

该用户从未签到

发表于 2009-5-24 14:47 | 显示全部楼层

                               
登录/注册后可看大图
The Simulink model, which implements the closed loop vector control of the motor speed, is shown on the right. The element which couples to MagNet is the red component with the MagNet logo.

                               
登录/注册后可看大图
The link component is designed to allow MagNet to take advantage of symmetry, by allowing the currents and/or voltages to be scaled in the transfer between Simulink and MagNet. In this case the four windings of each phase are connected in a series-parallel configuration, so the current and the voltage are both scaled by a factor of two in the Simulink component. Shown here is the mesh used by MagNet for its part of the simulation. At each time step, as the rotor changes position, the airgap is remeshed, which allows motional effects to be modeled quickly and accurately.

                               
登录/注册后可看大图
Using vector control a feedback loop monitors the motor speed and varies the motor torque to maintain a desired speed. The graph here shows the commanded speed (1800 rpm, shown in green) and the actual speed (shown in blue). The transient simulation starts in Simulink, which invokes MagNet transparently to jointly run its electromagnetic simulation. While both simulations are running they are constantly passing data back and forth to synchronize the voltages and currents.

                               
登录/注册后可看大图
This graph shows the vector voltages commanded by the feedback circuit. The system blocks in the lower left quandrant of the circuit implement an approximate inverse model of the motor, which means that the speed feedback need only generate small corrections to these voltages.

                               
登录/注册后可看大图
The graph at right shows the phase voltages commanded by the controller, which are obtained from the vector voltages by a DQ to ABC transformation. The element which performs this transformation is a user defined S-Function which implements the mathematical operations.

                               
登录/注册后可看大图
MagNet also takes the mechanical loads on the motion component into account, as well as velocity effects such as back emf. The resulting phase currents (shown here at right) are calculated by performing a finite element analysis, and are returned to Simulink.

                               
登录/注册后可看大图
This graph shows the actual vector currents. A limiter component in the feedback loop keeps the commanded current magnitude under 10 Amps. These currents are obtained from the phase currents using a user-defined ABC to DQ transformation element.

                               
登录/注册后可看大图
The previous graphs were generated by "Scope" blocks, which is just one of the many ways of extracting data from Simulink. Once the simulation is complete, MagNet's post-processor can be invoked to plot the magnetic quantities, such as flux linkage and torque, as well as fields, such as flux density and current density. The magnetic torque on the rotor is plotted here.
The link which orchestrates the data exchange between Simulink and MagNet is designed to allow different time steps in each application while both are running a transient simulation. In this example MagNet is running with a time step of only 0.2 ms, while Simulink is using a finer time step. A summary of the simulation data follows.
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

签到天数: 2 天

连续签到: 1 天

[LV.1]初来乍到

发表于 2009-5-24 20:43 | 显示全部楼层
主要是license里面要开通和simulink联合仿真的功能。如下:
INCREMENT MagNet_Simulink_Link_dll infodmon 999.999999 31-dec-2008 \
        uncounted HOSTID=DISK_SERIAL_NUM=2d2017f0 START=05-Dec-2007 \
        SIGN2="1F3A 8B14 F0A3 7419 E228 DE54 D142 8473 1A1B 764F D4FC \
        5193 A175 54E5 19E5 1AEA 0D0D 925A 8B2B CEFE 2175 666D 5B72 \
        52A2 5ED9 C00D 8932 8BE2 1058 5097"
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

签到天数: 2 天

连续签到: 1 天

[LV.1]初来乍到

发表于 2009-5-25 08:37 | 显示全部楼层
很可能是simulink2.0插件有问题,不兼容,请联系他们的技术支持。
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

签到天数: 2 天

连续签到: 1 天

[LV.1]初来乍到

发表于 2009-5-25 10:18 | 显示全部楼层
已确定是simulink插件问题。
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

该用户从未签到

发表于 2009-9-22 20:01 | 显示全部楼层
楼主版本很高啊,^_^
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

该用户从未签到

发表于 2011-12-21 22:22 | 显示全部楼层
我想问一下,magnet与simulink联合仿真时,magnet建立的模块接口是没法与simulink连接的啊 怎么解决呢?
西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|西莫电机圈 ( 浙ICP备10025899号-3 浙公网安备:33028202000436号

GMT+8, 2024-7-1 07:51 , Processed in 0.237704 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表