LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot(multiple) historical data with time stamp on graph x-axis

Hi ,
 I am using Labview DSC 8.5 , and logging data into Citadel Database . Then i am reading the logged data using Read Trace.vi ( in DSC module pallete ). Like this i am reading data from multiple read trace.vi. I am able to multiplot these data into a graph, but the graph is not showing the correct time ( i.e 5:32:07.000 AM 1/1/1904 )   on x-axis . I want to the show the time stamps read  from read trace.vi ,to plot in the graph on the x-axis and the data read from read-trace.vi as multiple plots in the graph.
 
i am attaching the vi.
Can anybody suggest a solution.
 
 
regards
Santosh  
0 Kudos
Message 1 of 5
(5,864 Views)
Hi Santosh,
 
Have you considered using an XY Graph?  I added that to your code and attached it as Demo[1].vi.  You may need to experiment with the format of the X-axis still.   
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(5,753 Views)

Hi Jennifer,

Thanks for the reply , I used the xy graph,as suggested , now the time stamps are shown on the x-axis.

One more query ,is  that on the xy graph ,how to give the time span(1,10,20,30 min) for the x-axis ie( if start time & endtime if given , the values plotted will be in span of 10 min in b/w start & end time).

 

regards

Santosh Kumar

 

 

 

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

Hi Jennifer,

Thanks for the reply , I used the xy graph,as suggested , now the time stamps are shown on the x-axis.

One more query ,is  that on the xy graph ,how to give the time span(1,10,20,30 min) for the x-axis ie( if start time & endtime if given , the values plotted will be in span of 10 min in b/w start & end time).What property should we use for this.....

 

regards

Santosh Kumar

 

0 Kudos
Message 4 of 5
(4,992 Views)
Hi Santosh,
 
There is a property you can set to change the increment value on each axis.  On the block diagram, right click the XY Graph and select Create » Property Node » X Scale » Range » Increment.  Place the property node on the block diagram, right click, and Change To Write.  If your X values are timestamps, wiring a constant of 600 (seconds) to the property node will change the increment to 10 minutes. 
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(4,897 Views)