Martin wrote in message <38DF50C2.5E4D702E@tuhh.de>...
>Hello everybody,
>
>my problem is to display measurements over the axis of time.
>I have an instrument connected at RS-232 and sendig data from time to
>time. I want to display this data in a graph over the time when it
>arrives. So the graph has to be updated everytime data arrives.
>
>Has anybody tips or a solution for that?
Use 1 array with the times and 1 array with your data.
Create a while loop that checks the number of bytes available at the serial
port. When new data arrives append the data to the data array and record
the time in the time array (either absolute or subtract the beginning of the
measurement, or the last time data arrived, whatever you want).
Bundle the 2 arrays in a cluster and feed the
m to an X-Y graph.
>Thanks, Martin
>