07-17-2009 12:33 AM
I am logging data from a device through a RS232 serial port. The device streams data approximately every 6 seconds, but it may vary from 4 to 8 seconds. I want to use a waveform chart to display data, with x-axis being the absolute time.
I am using a code very similar to the Real-Time Chart.vi example. The problem I have is: since my data does not come in a constant interval, I cannot wire a constant to the XScale.Multiplier.
Any suggestions?
Thanks in advance.
07-17-2009 01:00 PM
There was a mistake in the previous description. I want the x-axis to be relative time.
07-17-2009 01:20 PM
07-17-2009 01:38 PM
pack your new value along with the real "t0" into a waveform data type and then plot those to a chart and make sure the "ignore attributes" is NOT checked. The Waveform data typ chart will plot the values based on the "t0" of the WF.
Ben
07-17-2009 02:00 PM
The waveform datatype using the current timestamp certainly gets the job done. Since you want relative time you will probably want to subtract the starting time otherwise you'll get rather large numbers on the x-axis.
-Darin