hfss-matlab-api问题
时间:10-02
整理:3721RD
点击:
最近在学习hfss-matlab-api,在学习hfss-matlab-api中dipole_exampe这个例子时,遇到了一些问题。希望各位大神帮忙解答,在此先谢谢各位大神了!
在用matlab调用hfss时,能生成vbs脚本程序,但是不能打开hfss软件也不会生成tempData文件。程序运行到hfssExecuteScript这句时会出现如下报错:
Warning: HFSS Execution returned an error status !
相应程序段为:
tmpPrjFile='F:\Ansoft5\temp\tmpDipole.hfss';
tmpDataFile='F:\Ansoft5\temp\tmpData.m';
tmpScriptFile='F:\Ansoft5\temp\tmpDipole.vbs';
hfssExePath='E:\Ansoft\HFSS13.0\hfss.exe';
.....................
fclose(fid);
disp('Solving using Hfss');
hfssExecuteScript(hfssExePath,tmpScriptFile,false,false);
run(tmpDataFile);
...................
编译错误提示:
Creating the Script File
Solving using Hfss...
Running HFSS using E:\Ansoft\HFSS13.0\hfss.exe /RunScript F:\Ansoft5\temp\tmpDipole.vbs ...
Warning: HFSS Execution returned an error status !
> In hfssExecuteScript at 112
In dipole1 at 92
? Error using ==> run at 65
F:\Ansoft5\temp\tmpData.m not found.
Error in ==> dipole1 at 95
run(tmpDataFile);
在用matlab调用hfss时,能生成vbs脚本程序,但是不能打开hfss软件也不会生成tempData文件。程序运行到hfssExecuteScript这句时会出现如下报错:
Warning: HFSS Execution returned an error status !
相应程序段为:
tmpPrjFile='F:\Ansoft5\temp\tmpDipole.hfss';
tmpDataFile='F:\Ansoft5\temp\tmpData.m';
tmpScriptFile='F:\Ansoft5\temp\tmpDipole.vbs';
hfssExePath='E:\Ansoft\HFSS13.0\hfss.exe';
.....................
fclose(fid);
disp('Solving using Hfss');
hfssExecuteScript(hfssExePath,tmpScriptFile,false,false);
run(tmpDataFile);
...................
编译错误提示:
Creating the Script File
Solving using Hfss...
Running HFSS using E:\Ansoft\HFSS13.0\hfss.exe /RunScript F:\Ansoft5\temp\tmpDipole.vbs ...
Warning: HFSS Execution returned an error status !
> In hfssExecuteScript at 112
In dipole1 at 92
? Error using ==> run at 65
F:\Ansoft5\temp\tmpData.m not found.
Error in ==> dipole1 at 95
run(tmpDataFile);
小编,请问现在解决了吗?我遇到了一样的问题。谢谢。