From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart and timing measurements

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?

Thanks, Martin
0 Kudos
Message 1 of 2
(2,490 Views)
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
>
0 Kudos
Message 2 of 2
(2,490 Views)