rlt6246
-Interested User-
Posts: 3
Joined: Feb 8, 2016
|
Posted: Feb 8, 2016 06:56 AM
Msg. 1 of 4
I'm attempting to connect to IQFeed from a MATLAB application. I am using the Instrument Control Toolbox rather than the Datafeed toolbox. The launch of IQConnect is successful. But after constructing a tcpip object, the open command fails, suggesting that either IQConnect is not listening to the Admin port or it rejects the connection. I start IQConnect with the command:
IQConnect.exe -product RICHARD_THRASHER_***** -version 0.0.0.0 -login ****** -password ******** -autoconnect
(where ofc I used the actual data instead of *'s). I have attached the log. Ofc, I am pursuing this issue with MATLAB as well.
File Attached: IQConnectLog4.txt (downloaded 1568 times)
|
DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006
|
Posted: Feb 8, 2016 08:34 AM
Msg. 2 of 4
I sent you an email Richard, let us know if anything else comes up.
Tim
|
rlt6246
-Interested User-
Posts: 3
Joined: Feb 8, 2016
|
Posted: Feb 8, 2016 08:53 AM
Msg. 3 of 4
Thanks for your help. The problem was that my app called IQConnect synchronously, thus waiting until IQConnect timed out before it tried to connect. Making the call asynchronous solved the problem.
|
altmany
-Interested User-
Posts: 73
Joined: Jul 30, 2018
IQML - IQFeed-MATLAB connector
|
Posted: Mar 12, 2019 06:56 AM
Msg. 4 of 4
For completeness, in case anyone else has a similar problem, you can start IQConnect asynchronously by appending '&' at the end of the command: IQConnect.exe ... -autoconnect & Note that this is not specific to Matlab - It is an OS issue that may be relevant for anyone who launches IQConnect programmatically, using any programming language. Some programming languages also have alternative mechanisms for starting an external process asynchronously, without requiring an extra '&', but sending a system command with & should work across the board. Note: I am not a DTN employee; my post reflects my personal opinion and not necessarily DTN's
- Yair IQML - IQFeed-Matlab connector https://UndocumentedMatlab.com/IQML
|