[Kst] Re: streaming udp data

Nicolas Brisset nicolas.brisset at free.fr
Thu Mar 3 23:12:48 CET 2011

Hi Nikolaus,

that sounds like an interesting idea... I don't know what type of data you are using, but basically what you'd have to do is write a datasource plugin (there is a template and we can provide some help) that can:
- list the available variables
- provide for each variable the number of samples
- get the values of a given sample range for a given variable
- update the previous information regularly

I don't know how proficient you are with C++. I think the hardest part would be the local storage of data in the datasource as the data model is so that it is up to the datasource to provide the information.
Actually, thinking about it I believe the easiest solution would be to write a small piece of code that gets your UDP data and writes it locally to a file type supported by kst out of the box. I'd suggest ASCII (easiest), or getdata (good performance), or netCDF (standard format, with quite a few nice features. I believe it even supports over-the-network access, but you'd have to check).
I think this is not the first time we have such a request, it'd be nice to have something that we can integrate in the kst distribution...

I hope that helped a bit,


----- "Nikolaus Neusser" <nik.neusser at gmx.de> a écrit :

> Hello everyone,
> i would like to know if kst is capable of ploting data that is
> received in real time via ethernet/udp?
> How can i grab the udp data and forward it to kst?
> Thanks a lot,
> nik
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst

More information about the Kst mailing list