[Kst] KST 2 extremelly slow when using getdata
BOESEL Diego Fernandes
Diego.BOESEL at csem.ch
Tue May 13 11:00:34 UTC 2014
Hello all,
I am starting to use KST.
My environment is the following:
Linux 2.6.32.11, with RTAI patch
Ubuntu 10.04
KST 2.0.7
getdata-0.8.5
QT4
Now, my problem. I installed KST 2 from source (since using ppa, it is installed only KST1.7 and then getdata is not recognized).
Now, I create a very simple example with getdata:
DIRFILE *D = gd_open("/home/dfb/myProjects/dirfile-test", GD_RDWR | GD_CREAT | GD_TRUNC | GD_UNENCODED);
gd_add_raw(D, "data1", GD_FLOAT64, 1, 0);
double data1[20];
for (int i = 0; i < 10; ++i) {
data1[i] = i;
}
gd_putdata(D, "data1", 0, 0, 10, 0, GD_FLOAT64, data1);
/* We can also read the derived channel: */
double datum;
for (int i = 0; i < 20; i++) {
gd_getdata(D, "data1", i, 0, 1, 0, GD_FLOAT64, &datum);
printf("sin 0.1 + log(100) = %g\n", datum);
}
gd_close(D);
After running the C program above, I open KST and load the dirfile. KST gets extremelly slow after loading the dirfile above and gets slower with time.
What am I doing wrong here?
Thank you in advance,
Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20140513/f2d8f509/attachment.html>
More information about the Kst
mailing list