matlab与Simplorer的链接
matlab与Simplorer是如何链接的,请高人指点 你的是simporer7.05吗??是吧matlab中的导入simporer吗??这个比较容易。但是反过来好像不行吧 对啊!把matlab中的导入simporer!请高人指点迷津,多谢了! 不知道你的是那个版主的呀。。。。simplorer8.直接可以导入,和导入rmxprt是一样的 我装的是ftp上的simplorer7.0.1. 好像没有办法将matlab导入simploreranalysis下的matlab toolbox是灰色的。有什么办法吗?多谢。 有没有高手解答下啊,我刚好也碰见类似的问题了~ 4# huqianghui
这个问题也郁闷我好久了
我用的simplorer8和matlab2006a,一直都没有连接成功,导入sim或导入matlab都搞不定。是不是导入到simplorer的matlab模型在建模时需要用到特殊的引脚或者接口啊,可否详细讲解一下simplorer用的matlab模型建模时与普通的纯粹matlab仿真用的模型之间的区别? simplorer8和matlab2008a以下的版本都可以互联,如果不行可能需要重新REGISTER一下MATLAB. 我在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) 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. 明天再写教程! 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) simulink的variable step width的设置还有问题,不过互连的问题已经解决。 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) 能不能与matlab2008a联合仿真啊
我只能联合一次,第二次就没反应了。 V8可以与2008A联合仿真,看看这个帖子。
http://bbs.simol.cn/thread-27022-1-1.html 回复 8# H60880316
2008b 32位也可以互联
看sim的cpl目录下与mat互联支持文件里有08b的版本,且本人亲自测试过,可行 废话!这个问题我早就已经解决了,请看我另外一个帖子。 来了 ,学习看看!
页:
[1]
2