FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 FastHenry2
 Error using COM.FastHenry2_Document/invoke
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Julian

Germany
2 Posts

Posted - Feb 01 2017 :  10:10:33  Show Profile  Reply with Quote
Helllo
i am trying to call FastHenry with Matlab using something like:

ax=actxserver('FastHenry2.Document');
ax.invoke('Run',path_and_filename);


But i get an Error:

Error using COM.FastHenry2_Document/invoke
Error: The server threw an exception.

Can anybody Help?

Enrico

412 Posts

Posted - Feb 01 2017 :  12:08:14  Show Profile  Reply with Quote
This might depend on MatLab version. Try


ax=actxserver('FastHenry2.Document');
invoke(ax, 'Run', 'C:\coils1.inp');


where of course 'C:\coils1.inp' is the path and filename of your input file.

Best Regards,
Enrico

Go to Top of Page

Julian

Germany
2 Posts

Posted - Feb 01 2017 :  13:32:39  Show Profile  Reply with Quote
>> invoke(ax,'Run','C:\Users\jhafner\Desktop\fh.inp')

... gives me the same Error message:

Error using COM.FastHenry2_Document/invoke
Error: The server threw an exception.


..Thanks for the fast answer...

Regards
Julian
Go to Top of Page

Enrico

412 Posts

Posted - Feb 01 2017 :  17:57:17  Show Profile  Reply with Quote
Ok let's try another one: are you able to use FastHenry2 via Automation using the Excel sample you can find in the samples directory?

Best Regards,
Enrico
Go to Top of Page

BillBucket

3 Posts

Posted - Jul 20 2017 :  23:03:36  Show Profile  Reply with Quote
quote:
Originally posted by Julian

>> invoke(ax,'Run','C:\Users\jhafner\Desktop\fh.inp')



Try putting the quotes in the filename:

invoke(ax,'Run','"C:\Users\jhafner\Desktop\fh.inp"')
Go to Top of Page

sanghyeon

USA
1 Posts

Posted - Apr 24 2018 :  03:06:28  Show Profile  Reply with Quote
I had the same problem, and turns out the error was because of 32-bit and 64-bit version mismatch between pywin32, python, and FastHenry. Make sure all three of them are in either 64-bit version or 32-bit version without mix.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
FastFieldSolvers Forum © 2018 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06