ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp

Solved!
Go to solution

In labview 8.5, how can I plot a discrete signal, i.e. not a waveform, vs. a timestamp?  I am trying to take a waveform then average it and plot the averaged values over time.

 

Thanks!

0 Kudos
Message 1 of 7
(3,816 Views)
Solution
Accepted by topic author adwhit

Convert the timestamp to a DBL and use it as the X axis of an XY graph.

 

Message Edited by Dennis Knutson on 03-18-2010 01:54 PM
Message 2 of 7
(3,811 Views)

Hi adwhit,

 

take a XY graph. Make an array of timestamps for the X values. Make an array of numbers for the Y values. Bundle the arrays to a cluster. Wire the cluster to the graph. That's what the context help of the graph says! Now the only step left is to format the x axis to show time instead of numerics...

Best regards,
GerdW


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

Gerd,

 

We have to stop meeting like this.Smiley Very Happy

Message 4 of 7
(3,796 Views)

Thanks for the help, the graphical solution was very helpful!

 

I now want to take a running derivative, or linear fit to determine equilibrium... any ideas on that?  I'm just not sure how to do the running part the best way.  I need to take probably the last 1200 samples once I have that many, or all the samples before I reach 1200.

 

Thanks again.

 

Adam 

0 Kudos
Message 5 of 7
(3,736 Views)

Hi adwhit,

 

just search the forum for "running average" or "running mean" - you will find a lot of threads already with solutions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,731 Views)
Ok, thanks a bunch.
0 Kudos
Message 7 of 7
(3,729 Views)