FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 FastFieldSolvers
 FastHenry2
 Command line parameters using automation

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Antispam question: What do MOONwalk and MOONdance have in common?
Answer:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON

 
   

T O P I C    R E V I E W
infestor Posted - Sep 08 2014 : 23:40:19
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
1   L A T E S T    R E P L I E S    (Newest First)
Enrico Posted - Sep 11 2014 : 14:39:25
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

FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06