FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 FastFieldSolvers
 FastHenry2
 Error using COM.FastHenry2_Document/invoke

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
Julian Posted - Feb 01 2017 : 10:10:33
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?
5   L A T E S T    R E P L I E S    (Newest First)
sanghyeon Posted - Apr 24 2018 : 03:06:28
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.
BillBucket Posted - Jul 20 2017 : 23:03:36
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"')
Enrico Posted - Feb 01 2017 : 17:57:17
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
Julian Posted - Feb 01 2017 : 13:32:39
>> 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
Enrico Posted - Feb 01 2017 : 12:08:14
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


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