FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 FastHenry2
 old new Matlab Automation Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eactor

5 Posts

Posted - Sep 09 2010 :  21:50:52  Show Profile  Reply with Quote
Hello,
I since a lot of people have asked for Matlab Automation: i figured it out and it was kind of weired why handle.Run() didn't work. But the good news is invoke works fine.

path_to_input='C:\Programme\Fastfieldsolvers\Fasthenry2\Samples\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=[];


have fun with it, it to me quite forever to find it out.

eactor

eactor

5 Posts

Posted - Sep 09 2010 :  21:53:16  Show Profile  Reply with Quote
sry you have to change Programme in Progam Files, other wise it probably only works on German Windows Version.
Go to Top of Page

chromatik

France
29 Posts

Posted - Sep 13 2010 :  14:35:52  Show Profile  Reply with Quote
Thanks eactor !
It might be useful for me :)

Regards
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