| Author |
Topic  |
|
|
infestor
Germany
1 Posts |
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 |
|
|
Enrico
550 Posts |
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
|
 |
|
| |
Topic  |
|
|
|