LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

non uniform time interval on the x axis chart

I am reading in data from instrument using the gpib wait for rqs in a while loop.hence the time stamp for each data recieved is not uniform . How do i put the data into the chart? The time on the x axis when i tried using the bundle (data and seconds now) to the chart but it is always inaccurate.
i would like to have a scrolling chart that will show the flucation of the data as the vi is running
using labview6.1
thanx for anyone's help
0 Kudos
Message 1 of 4
(3,218 Views)
huatzai,

I suggest you look at the Variable-Time Chart XY.vi example that ships with LabVIEW. It does exactly what you want to do. To find it, open the Find Examples dialog (either when LabVIEW starts or from the Help menu), go to the Search tab and type in 'xy chart'.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 4
(3,218 Views)
I will suggest you try this: each time you acquire a data get the time stamp as well with "Get Date/Time in Seconds" or some other means that is accurate for your need. Assembly your data into a cluster with "Bundle"function then use "Shift Register" with "Buld Array" function to form your array for plotting. You can then use the XY chart to plot your data. For correct output, you have to format your x-axis to Time & date.
0 Kudos
Message 3 of 4
(3,218 Views)
oh thanx
I got it working now
0 Kudos
Message 4 of 4
(3,218 Views)