cancel
Showing results for 
Search instead for 
Did you mean: 

[personal kdb+] how to connect to Kdb+ from Matlab

Richard_Zwz
New Contributor II

Hi,
When trying to connect to a 32bit KDB+ database (q v2.6) using the
Matlab's KX Datafeed(V3.5 (R2010a)). I keep getting the following
error:

>> q=kx('127.0.0.1',5001)
??? Undefined function or method 'c' for input arguments of type
'char'.

Error in ==> C:\Program Files\MATLAB\R2010a\toolbox\datafeed\datafeed
\@kx\kx.p>kx
at 51

I have looked at "Interfacing with Kdb+ from Matlab"(https://
code.kx.com/trac/wiki/Cookbook/IntegratingWithMatlab) and Matlab's
solution ID:1-6WOC9E (http://www.mathworks.com/support/solutions/en/
data/1-6WOC9E/index.html?product=DF&solution=1-6WOC9E) . I have
confirmed that
1) a kdb+ process running on the local host on port 5001;
2) the jdbc.jar from kx (https://code.kx.com/trac/browser/kx/kdb%2B/c/
jdbc.jar) is installed and the jar file is added to the classpath
used by Matlab.

any idea? thx.

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To post to this group, send email to personal-kdbplus@googlegroups.com.
To unsubscribe from this group, send email to personal-kdbplus+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/personal-kdbplus?hl=en.


4 REPLIES 4

charlie
New Contributor II
New Contributor II
there's a conflict of namespaces

Richard_Zwz
New Contributor II
thanks, this revision of jdbc.jar works fine.On 5月4日, 上午11时48分, Charles Skelton wrote:> there's a conflict of namespaces>> pls try this revision of jdbc.jar>> https://code.kx.com/trac/browser/kx/kdb%2B/c/jdbc.jar?rev=377>>>>>> On Tue, May 4, 2010 at 4:49 AM, Richard Zwz wrote:> > Hi,> >    When trying to connect to a 32bit KDB+ database (q v2.6) using the> > Matlab's KX Datafeed(V3.5 (R2010a)). I keep getting the following> > error:>> > >> q=kx('127.0.0.1',5001)> > ??? Undefined function or method 'c' for input arguments of type> > 'char'.>> > Error in ==> C:\Program Files\MATLAB\R2010a\toolbox\datafeed\datafeed> > \@kx\kx.p>kx> > at 51>> > I have looked at "Interfacing with Kdb+ from Matlab"(https://> > code.kx.com/trac/wiki/Cookbook/IntegratingWithMatlab)  and Matlab's> > solution ID:1-6WOC9E (http://www.mathworks.com/support/solutions/en/> > data/1-6WOC9E/index.html?product=DF&solution=1-6WOC9E) . I have> > confirmed that> > 1) a kdb+ process running on the local host on port 5001;> > 2) the jdbc.jar from kx (https://code.kx.com/trac/browser/kx/kdb%2B/c/> > jdbc.jar) is installed and  the jar file is added to the classpath> > used by Matlab.>> > any idea? thx.>> > --> > You received this message because you are subscribed to the Google Groups> > "Kdb+ Personal Developers" group.> > To post to this group, send email to personal-kdbplus@googlegroups.com.> > To unsubscribe from this group, send email to> > personal-kdbplus+unsubscribe@googlegroups.com> > .> > For more options, visit this group at> >http://groups.google.com/group/personal-kdbplus?hl=en.>> --> You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.> To post to this group, send email to personal-kdbplus@googlegroups.com.> To unsubscribe from this group, send email to personal-kdbplus+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/personal-kdbplus?hl=en.- 隐藏被引用文字 ->> - 显示引用的文字 --- You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.To post to this group, send email to personal-kdbplus@googlegroups.com.To unsubscribe from this group, send email to personal-kdbplus+unsubscribe@googlegroups.com.For more options, visit this group at http://groups.google.com/group/personal-kdbplus?hl=en.

babaji
New Contributor
Hi , I am trying the latest jdbc.jar , but getting error: "The class kx has no Constant property or Static method named 'c'.", executinh command line: k = kx('127.0.0.1',5002). Amy help would be much appreciated. Thanks !

charlie
New Contributor II
New Contributor II

and let us know if you continue to have a problem.

thanks