zhangdewang 发表于 2009-7-16 08:43

matlab与Simplorer的链接

matlab与Simplorer是如何链接的,请高人指点

huqianghui 发表于 2009-7-16 08:55

你的是simporer7.05吗??是吧matlab中的导入simporer吗??这个比较容易。但是反过来好像不行吧

zhangdewang 发表于 2009-7-16 13:35

对啊!把matlab中的导入simporer!请高人指点迷津,多谢了!

huqianghui 发表于 2009-7-16 14:19

不知道你的是那个版主的呀。。。。simplorer8.直接可以导入,和导入rmxprt是一样的

jefferliu 发表于 2009-10-18 23:27

我装的是ftp上的simplorer7.0.1. 好像没有办法将matlab导入simplorer
analysis下的matlab toolbox是灰色的。有什么办法吗?多谢。

kurosagi425 发表于 2009-11-2 19:27

有没有高手解答下啊,我刚好也碰见类似的问题了~

eecomes 发表于 2009-11-2 20:15

4# huqianghui
这个问题也郁闷我好久了
我用的simplorer8和matlab2006a,一直都没有连接成功,导入sim或导入matlab都搞不定。是不是导入到simplorer的matlab模型在建模时需要用到特殊的引脚或者接口啊,可否详细讲解一下simplorer用的matlab模型建模时与普通的纯粹matlab仿真用的模型之间的区别?

H60880316 发表于 2009-11-3 09:30

simplorer8和matlab2008a以下的版本都可以互联,如果不行可能需要重新REGISTER一下MATLAB.

eecomes 发表于 2009-11-4 18:27

我在simplorer V8中调用matlab simulink (2006a)模型(模型名称为sim2sim.mdl)时出现下面这样的错误报告,不知道怎么解决,求助高手
Project1 (D:/Ansoft/UserdataSimplorer/)
Simplorer1
    Compiler completed successfully. (2:04:23 下午十一月 04, 2009)
    Analyzing... (2:04:24 下午十一月 04, 2009)
    Info - Matlab message <Warning: The model 'sim2sim' does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Paramet>>> Prepare(2:04:38 下午十一月 04, 2009)
    Error 10532 - Error encountered while PREPARE.>> Close(2:04:38 下午十一月 04, 2009)
    Simulation completed with errors.(2:04:39 下午十一月 04, 2009)
    Simulation completed with execution error on server: Local Machine. (2:04:41 下午十一月 04, 2009)

H60880316 发表于 2009-11-10 00:39

eecomes老弟:
经过老兄我鏖战到12点半,终于解决了SIMPLORER和SIMULINK互联的问题。
我在SIMPLORER中只加了一个SINE信号,将它输出给SIMULINK,成功地完成了。
关键是要使用AnsoftSFunction这个S函数,将SIMPLORERDE的数据传递给SIMULINK。
AnsoftSFunction包括三个文件,一个M文件,一个H文件,还有一个DLL文件,都在SIMPLORER的文件夹中。
另外还要注意两点(成功互联必需的),一是至少有一个数据传递,另外一个是数据的步长要在SIMULINK的PARAMETER中设置。
To achieve a successful co-simulation, at least one output must be defined between the Simplorer and MATLAB/Simulink models, and the variable step width must be chosen as a simulation parameter in MATLAB/Simulink.

H60880316 发表于 2009-11-10 00:45

明天再写教程!

H60880316 发表于 2009-11-10 01:08

tosimulink (D:/SIM8_Data/tsh/)
Simplorer1
    Compiler completed successfully. (1:06:26 上午十一月 10, 2009)
    Analyzing... (1:06:26 上午十一月 10, 2009)
    Info - Simulation stopped by user.>> Validate(1:06:34 上午十一月 10, 2009)
    Info - Matlab message <Warning: The model 'sim2sim' does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Paramet>>> Calculate(1:06:34 上午十一月 10, 2009)
    SDB file "D:/SIM8_Data/tsh/tosimulink.asmpresults/Simplorer1/temp/TR_DV15_S5_V22.sdb" saved. (1:06:35 上午十一月 10, 2009)
    Simulation completed successfully. Time: 0.157000 sec.(1:06:35 上午十一月 10, 2009)
    Normal completion of simulation on server: Local Machine. (1:06:35 上午十一月 10, 2009)

H60880316 发表于 2009-11-10 01:12

simulink的variable step width的设置还有问题,不过互连的问题已经解决。

H60880316 发表于 2009-11-10 10:27

tosimulink (D:/SIM8_Data/tsh/)
Simplorer1
    Compiler completed successfully. (10:24:41 上午十一月 10, 2009)
    Analyzing... (10:24:41 上午十一月 10, 2009)
    SDB file "D:/SIM8_Data/tsh/tosimulink.asmpresults/Simplorer1/temp/TR_DV9_S7_V0.sdb" saved. (10:24:50 上午十一月 10, 2009)
    Simulation completed successfully. Time: 0.203000 sec.(10:24:50 上午十一月 10, 2009)
    Normal completion of simulation on server: Local Machine. (10:24:50 上午十一月 10, 2009)

H60880316 发表于 2009-11-10 10:28

lonesomezhu 发表于 2009-11-11 10:38

能不能与matlab2008a联合仿真啊
我只能联合一次,第二次就没反应了。

H60880316 发表于 2009-11-11 13:00

V8可以与2008A联合仿真,看看这个帖子。
http://bbs.simol.cn/thread-27022-1-1.html

flyingmind 发表于 2009-11-27 23:29

回复 8# H60880316

2008b 32位也可以互联
看sim的cpl目录下与mat互联支持文件里有08b的版本,且本人亲自测试过,可行

H60880316 发表于 2009-11-28 00:07

废话!这个问题我早就已经解决了,请看我另外一个帖子。

yzx11235813 发表于 2009-12-23 19:20

来了 ,学习看看!
页: [1] 2
查看完整版本: matlab与Simplorer的链接