NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Steveyen1
Posts: 4
0 Kudos

How to plot trend of data in a measurement file to xy graph.

I created a data acquisition program that successful logs a timestamp and the process value into excel sheet. 

 

I would like to know if these values can be plotted in an xy graph for operator to view process value against the timestamp. I would also like to create a control like ' VIEW DATATREND' that the operator can click so that a message is displayed asking the operator to specify the time period of data he want to trend for example from 19/04/2012 8:10:06 to 20/04/2012 21:35:10 and the program will pick the process value corresponding to this times and plot them in an xy graph with the timestamp as the X axis. 

 

I will really appreciate any information on how to solve this.

 

 

Member
David. B
Posts: 104
0 Kudos

Re: How to plot trend of data in a measurement file to xy graph.

Hi Steve,

 

With regards to your question about how to plot a graph of the data, do you wish to view this in LabVIEW or in Excel? Both of which are possible but are achieved in different ways.

 

Your second question is also achievable and would probably be best done using property nodes to select the range of the plot, the following example shows how you can accomplish this although this does not have the time on the x-axis plotted as a timestamp. This would make a very good starting point that you can work from to achieve what you want:

 

https://decibel.ni.com/content/docs/DOC-11203

 

I hope that this helps.

 

Kind Regards

 

David B
Applications Engineer
National Instruments UK
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page