matlab actxserver怎么关闭Maxwell啊

simulation_path = 'D:\project\Vibration_table\仿真曲线数据';

imaxwell = actxserver('Ansoft.ElectronicsDesktop');

oDesktop = imaxwell.GetAppDesktop();

oDesktop.RestoreWindow

oDesktop.OpenProject('D:/project/Vibration_table/Sim_vibration_table_new.aedt')

oProject = oDesktop.SetActiveProject('Sim_vibration_table_new');

oDesign = oProject.SetActiveDesign('vibration table_original');

oModule = oDesign.GetModule('BoundarySetup');

oModule.EditCurrent('Current1', {'NAME:Current1', 'Current:=', '64000A', 'IsSolid:=', ...

false, 'Point out of terminal:=', false})

oModule.EditCurrent('Current2', {'NAME:Current2', 'Current:=', '64000A', 'IsSolid:=', ...

false, 'Point out of terminal:=', false})

oModule.EditCurrent('Current3', {'NAME:Current3', 'Current:=', '400A', 'IsSolid:=', ...

false, 'Point out of terminal:=', false})

oEditor = oDesign.SetActiveEditor('3D Modeler');

picture_path = strcat(simulation_path,'\p1.bmp');

oEditor.ExportModelImageToFile(picture_path, 1247, 622, {'NAME:SaveImageParams', 'ShowAxis:=', ...

'False', 'ShowGrid:=', 'True', 'ShowRuler:=', 'True', 'ShowRegion:=', 'Default', 'Selections:=', ...

'', 'FieldPlotSelections:=', '', 'FitToSelections:=', '', 'FitToFieldPlotSelections:=', ...

'', 'Orientation:=', ''})

oProject.Save

imaxwell.Quit()

imaxwell.delete()

imaxwell.Quit()这句始终报错,错误信息为:检查对函数 'Quit' 的调用中是否存在不正确的参数数据类型或缺少参数。可是我用同样的语法关闭word、excel这些就没问题啊,实在搞不明白。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值