LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create plot with time vs array

Hi, pavitrabaxi, thank you for reply; my problem is little different by your description.
I have an array of 7 points and I want to plot the 7 point versus time. Then I want remember the history. I haven't an array for each plot, therefore I don't create a cluster with time array and y values.
Please, let me know  if you have another solution.

0 Kudos
Message 11 of 14
(953 Views)
Dear raf, are you getting the time data from anywhere, if not, then there is a vi called get date time in seconds, this will give u the actual cpu clock time. what you can do is build an array of your 7 points and build an array of the time data which should also be 7 points, now u have 2 arrays, one with x data and one with y data, make a cluster of these two arrays and wire it to xy plot vi. i guess this should help. im still unclear as to what u want to do, if you could explain ur project and what is it that you want to plot in a chart that would be of help to me, maybe i can give a better solution
0 Kudos
Message 12 of 14
(942 Views)
I have to measure 7 voltage and use an instrument that get me an array of 7 points; each of this points is a voltage that I have to measure.
I repeat the measure in the time every 1 seconds, for example. I want to plot these voltages versus time. I get the time with the vi get date time.
I hope I had more clear in the descripion.
Thank you again.


0 Kudos
Message 13 of 14
(940 Views)
I don't understand why you're still having problems. The example I mentioned (Real-Time Chart) has time on the x-axis. Here's another example. On the front panel, right click on the chart and select X Scale>Formatting and select Absolute Time.
0 Kudos
Message 14 of 14
(936 Views)