05-30-2017 03:59 PM
I am making a program for data collection for use in our testing lab. We have been using the wave form chart, but if i tell it every reading is one minute apart, but they are actually a fraction of a second longer, than expected then the time on the chart starts to shift, causing complaints from the operators.
Im wanting to use the XY Graph so that each data point has a time stamp so that the time is always correct with the data samples, even if timing goes off a little bit.
Issue being that when i send the data to the XY graph even though i have sent in the time stamp for all the data points, it doesn't have the time stamp when it shows it in the Graph.
I know the data doesn't have the time stamp when graphed because, when i right click the graph and tell it to export to excel, it shows zeros for time and date. (See below)
Time - TC 1 | Amplitude - TC 1 | Time - TC 2 | Amplitude - TC 2 |
00:00 PM MM/DD | 0.511382 | 00:00 PM MM/DD | 0.236939 |
00:00 PM MM/DD | 0.965603 | 00:00 PM MM/DD | 0.370267 |
00:00 PM MM/DD | 0.494924 | 00:00 PM MM/DD | 0.683093 |
Solved! Go to Solution.
05-30-2017 05:10 PM
Hi there,
I have a couple notes. I had to recreate your VI, since I'm using LV 2012, and it is graphing over time for me. Is your X-Axis format set to absolute time?
05-30-2017 10:40 PM
1- Yes it is set for absolute time.
2- The reason for using the For Loop to handle programmatic number of readings. My actual application will handle at least 20, and may use more as needed. so the number of readings needing to be built into arrays needs to be adaptable , build array, and index array only works if you hard code the number
3-Didn't know that. I'll try it.
4-The in place element structure was just to keep things organized, but true does nothing functionally.
05-31-2017 12:23 AM
Could you post your VI for LV 2012 or lower?
05-31-2017 08:11 AM
Attached is the VI saved as 2012 version, let me know if it works.
05-31-2017 09:18 AM
Right-click the X-axis and select "Autoscale X".
05-31-2017 09:21 AM
If you do that, you can see the data being plotted along the x-axis, but the x-axis doesn't correlate to any time. it just says 00:00 PM MM/DD at both ends of the x-axis. which doesn't help the operator who needs to know when the reading was taken.
05-31-2017 09:23 AM
I also see your multiplier is 60, you should set this back to 1.
05-31-2017 09:25 AM
In this thread I posted some code that uses Waveform Data types to be able to plot readings at the exact time they were taken.
Ben
05-31-2017 09:29 AM
That was the issue.
A little more back ground, this chart was originally a Waveform chart, I did the Right Click>Replace> XY Graph(Silver)
The waveform chart was needing the multiplier to accommodate the once per minute reading. But since I just replace it, the old settings stayed in place. And the XY graph doesn't need the multiplier since the readings are time stamped.
Thank you gregoryj.