[Kst] reading files of hex
George Staikos
staikos at kde.org
Thu Dec 30 04:09:51 CET 2004
On Wednesday 29 December 2004 20:41, Simon Bridger wrote:
> Hi,
>
> We have an IC (BL233) that interfaces a PC serial/usb ports to
> I2C/SMBUS/SPI.
>
> It is commanded in ascii, and it returns bytes that it reads as ascii HEX.
>
> KST looks like it would be a nice way for people to plot data collected
> from I2C chips like a-d convertors, temperature sensors etc.
>
> For this kst would need to be able to read ascii hex from data files, both
> single and multibyte hex values.
> This capabilty might be easy to add if you are using scanf or similar for
> your ascii import.
>
> Preferably it would also be able to byte swap for LSByte first devices, and
> signed an unsigned data.
> Also from experience it needs to be able to ignore short or broken lines.
> Also it is desireable to be able to specify values , and data ranges, that
> have special meanings: Missing data, bad data, +limit, -limit.
This is possible by modifying the kst/kst/datasources/ascii/ plugin. We
don't support hex in the ascii source yet, as you know.
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst
mailing list