FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 FastHenry2
 Command line parameters using automation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

infestor

Germany
1 Posts

Posted - Sep 08 2014 :  23:40:19  Show Profile  Reply with Quote
Hi,

I cannot pass command line arguments to Fasthenry2 when using automation. For example, I using Matlab, this works:

path_to_input='C:\Users\Public\Documents\FastFieldSolvers\FastHenry2\Automation\Office\';
ax=actxserver('FastHenry2.Document');
ax.invoke('Run',['"' path_to_input 'coils1.inp"']);
while(ax.invoke('IsRunning'))
pause(0.1);
end
ax.invoke('GetInductance')
ax.invoke('Quit');
ax=[];

However, adding any command line argument will just leave me without any results, for example

ax.invoke('Run',['"' path_to_input 'coils1.inp -O"']);

will do nothing. It also does not work using other Languages (vbs, Excel etc.). What am I doing wrong?

Best,

Andre

Enrico

550 Posts

Posted - Sep 11 2014 :  14:39:25  Show Profile  Reply with Quote
Using the '-O' switch will not give you different results if you are not catching the log output from FastHenry2 via Automation callback, as shown in the Visual Basic sample (this is the most complete example on how to use FastHenry2's automation functions).

Please try to use some other option, like '-r2', that should output in the same directory of the Zc.mat output file also the reduced-order .spice file. If you see the file, the switch worked.

Best Regards,
Enrico
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06