LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform with time stamps randomly separated

Folks,
 
I'd like to get your advice on the following task.
 
A spectrometer takes data at arbitrary, not foreseeable instants. To each new point a time stamp is attached. The data shall be displayed in a waveform graph with the data coordinate on the y-axis, the data points being appropriately spaced with the correct time stamps on the x-axis.
 
How can I do this? How can I create a waveform with arbitrarily spaced time lag between the points?
 
Thanks for any hint,
Peter
0 Kudos
Message 1 of 5
(3,575 Views)
HI Peter,

the wavefrom datatype only supports evenly spaced points. You cannot use it with randomly spaced datapoints.

To plot your data you should use a XY-graph instead. Use the timestamps as x-data and the datavalues for the y-axis...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,574 Views)

Thanks, Gerd,

it works now.

P.

0 Kudos
Message 3 of 5
(3,566 Views)

Sorry to differ Gerd.

In this thread  Iposted an example that shows the "t0" dictates the "X" value of the plotted point.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 5
(3,559 Views)
Hi Ben,

you don't have excuse, it's a nice example.

So I learned something new: how to trick a waveform chart to display values without fixed dt Smiley Happy
(Even when it needs some conversion routines when you collect your data in arrays...)

Message Edited by GerdW on 08-23-2007 02:18 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(3,555 Views)