LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot data real time in a chart o graph

Hello, I have some troubles in plotting data acquired from serial port in real time. I have a point (scalar) every 500ms (I can set this time because I read data using a while loop controlled by means of a wait (ms) function and i want to plot the data in a graph. Using chart the amplitude is correct (y axis) but the time (x) is incorrect.(I think data are displayed every 500ms but the values indicated on the x axis is not correct.
 How to correct the time in x axis? Plaese help me.
Maurizio
0 Kudos
Message 1 of 2
(2,747 Views)
You have to tell the chart what your acquisition interval is. It defaults to 1. You do this by writing to to the chart's xscale.multiplier property. Lookat the shipping example called Real Time Chart.
0 Kudos
Message 2 of 2
(2,743 Views)