[Kst] KST 2 extremelly slow when using getdata
Barth Netterfield
barth.netterfield at utoronto.ca
Thu May 15 19:07:27 UTC 2014
This seems like it should be OK - at least it is in git master.
Can you send a tarball of your dirfile?
cbn
On May 13, 2014 11:00:34 AM BOESEL Diego Fernandes wrote:
> 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
--
Barth Netterfield
University of Toronto
416-845-0946
More information about the Kst
mailing list