I try to establish a communication between Matlab and FEMM with
HandleToFEMM=actxserver('femm.ActiveFEMM');
but I get the following error:
Error using actxserver (line 90)
Server creation failed. Invalid ProgID 'femm.ActiveFEMM'.
What do I do wrong?
I have Matlab R2016b, Wine-1.9.23 (Staging) and FEMM 4.2 on a MacBookPro running macOS Sierra (10.12.1).
Thanks for your help in advance.

 採用された回答

Nirav Sharda
Nirav Sharda 2016 年 11 月 28 日
編集済み: Nirav Sharda 2016 年 11 月 28 日

0 投票

The documentation link on actxserver suggests that it needs COM communication that is available on Windows systems only. The FEMM 4.2 works fine with MATLAB on Windows.

5 件のコメント

Torben Schmidt
Torben Schmidt 2016 年 11 月 28 日
Thanks for your reply. Please excuse my ignorance, I am fairly new to Matlab/Octave. In the case of Octave, you could load a windows package which enabled you to establish a COM server even on mac. Do you know whether there is such a thing for Matlab? Or do you know where I can read about establishing a communication between Matlab and a programme on mac?
Walter Roberson
Walter Roberson 2016 年 11 月 28 日
Are you running MATLAB native on the Mac (OS-X version), or are you running MATLAB inside Wine (Windows version)?
Omar Ismail
Omar Ismail 2016 年 12 月 20 日
I am having the same problem. I have MATLAB on Mac, and I am using Wine to run FEMM.
Walter Roberson
Walter Roberson 2016 年 12 月 20 日
Omar Ismail, is MATLAB running in OS-X itself, or are you running the Windows version of MATLAB inside of Wine?
In order to use activexserver you would need to be running the Windows version of MATLAB. The Linux and OS-X versions of MATLAB do not have activex capabilities compiled in.
Jason Xu
Jason Xu 2019 年 6 月 1 日
Hi Walter, just wondering is it possible to open the same multiple softwares by using actxserver? Thank you

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by