- 积分
- 0
- 注册时间
- 2009-3-11
- 仿真币
-
- 最后登录
- 1970-1-1
|
matlab: 2010b
maxwell: 14.0
系统:win7 64bit
CPU: 4核*2
调用过程:通过matlab的mdce工具箱,建立多个任务(createTask),每个任务生成一个maxwell脚本并调用maxwell计算。
问题:脚本均已正确生成,但调用maxwell出错,从任务管理器看到多个maxwell启动,但很快退出。以下为各任务输出的信息(8个任务)
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_1.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_2.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_3.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_4.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_5.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_6.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_7.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
Ansoft Maxwell Version 14.0.0, Build: 2010-10-25 04:49:02
Location: C:\Program Files (x86)\Ansoft\Maxwell14.0\maxwell.exe
Batch Script: D:/users/project/test_8.vbs
Starting Batch Run: 10:50:48 上午 十月 22, 2011
Running as user: 307-PC\tang
Temp directory: D:\users\project\tmp
Project directory: D:\users\project\tmp
进一步研究发现,如果在本地通过parfor来并行发起多个maxwell进程(matlab程序),或是利用其他并行代码发起多个maxwell进程(外部程序),所有maxwell都能成功运行,但如果利用createTask分配的matlab运行以上的matlab程序或外部程序来并行发起多个maxwell进程,仍然只有一个maxwell成功运行,请问这是什么原因呢,有点抓狂了。。。。。。。。
谢谢 |
|