Matlab COM connection using an actxserver
显示 更早的评论
Hello,
I'm running a Matlab script to invoke an another software (Surfer) to calculate grids from data. The code was downloaded from fileexchange - ( gridding_surfer ). The code worked perfectly some months ago, however now I'm not able to run the code.
After I run
SurferApp = actxserver('surfer.application');
I'm getting an error code:
Error using feval
Server Creation Failed: Server execution failed
Error in actxserver (line 86)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Apparently the progID is not working, I checked the Windows registry, but everything seems to be fine there and a progID is associated the application. Is there a way how to debug it more in detail, e.g. list or edit or progID?
2 个评论
Jason Xu
2019-6-1
Hi David, I was wondering if you can open two Surfer softwares by using actxserver? Thanks
Guillaume
2019-6-1
@Jason,
Most likely no. That's not because of actxserver but because the Microsoft COM technology it relies on doesn't allow you to do that.
The only ways this could be possible would be if either:
- You were trying to launch two different version of the software AND the softwate use a versioned progID
- The software COM interface has been specifically designed to start several instances.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!