Matlab2015b Error in actxserver (line 86) h=feval(['COM.' convertedProgID], 'server', machinename, interface); The specified procedure could not be found

조회 수: 11 (최근 30일)
I'm trying to connect matlab to TWS through API - ib=ibtws('',7496) -. OS is Windows10 x64 .First I had the 2016a x64 version and downgraded to 2015b 32bit. The same with TWS, had to downgrade to 957.3 release and x86 version. Already installed C++ redistributable 2005, 2008 and 2010 in x86 version. Already installed 970 API from IB. And I keep getting the same message:
>> ib=ibtws('',7496); Error using feval Server Creation Failed: No se encontró el proceso especificado.
Error in actxserver (line 86) h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Error in ibtws
I've Been trying to solve this all day and nothing seems to work. If anyone has found a solution, you can spare me a stroke.
Thnx!!

답변 (1개)

ivan Kiriyanov
ivan Kiriyanov 2017년 1월 25일
편집: Walter Roberson 2017년 1월 25일
Rejoice! Found the solution .
This is for 9.71 version of API. It seems that Matlab trading toolbox is not updated to the newest version of API
Here's the sequence
1. Uninstall the API component by navigating to Control Panel -> Program and Features
2. Locate and delete the following files if they are still present:
C:\Windows\System32(SysWOW64)\TwsSocketClient.dll C:\Windows\System32(SysWOW64)\MsFlxgrd.ocx C:\Windows\ddedll.dll
3. Restart your computer.
4. Install the Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) http://www.microsoft.com/en-us/download/details.aspx?id=5638
5. Install the Microsoft Visual J# 2.0 Redistributable Package. http://www.microsoft.com/en-us/download/details.aspx?id=4712
If the problem still persists, you may have to register the Tws.ocx file manually. It is essential that you run CMD or command in Administrator, even though you login as local administrator. Please follow the below steps:
1. Copy Tws.ocx (C:\TWS API\bin\ActiveX\ to the following directory: C:\Windows\System32(SysWOW64)\
2. Click the Search Windows icon (Magnifier glass) and in the Search area, type "cmd”
3. Right click the "Command Prompt" banner, and select "Run as Administrator"
4. At the command prompt, enter: %systemroot%\System32(SysWOW64)\regsvr32.exe Tws.ocx
5. This should successfully register your Tws.ocx.
  댓글 수: 5
laserfocused
laserfocused 2018년 3월 2일
Same for me, I have done all the steps too 1 to 5 and then registered successfully tws.ocx but still having the error using feval mistake.
Please help!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by