LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

when using historical datalogging, is it possible to hide the elapsed time between tag updates when viewing on a graph?

When my process stops, I am reading an array of tags(datapoints) and writing the max and average to memory tags for data logging. However, when viewing the data, the elapsed time between cycles spreads the data out unevenly. It could be 90 seconds between cycles or maybe two hours or longer. Is there a way to convert the time axis data to be just consecutive datapoints?? It would be like logging data based on a particular condition happening rather than time-based trending. Should I try to use the data set logger examples instead?? I would prefer to use the built-in datalogging features rather than writing to databases.
0 Kudos
Message 1 of 2
(2,374 Views)
You could export your data to a spreadsheet file and then actually write then again in a second database using this example program in the devzone

http://zone.ni.com/devzone/conceptd.nsf/webmain/5A921A403438390F86256B9700809A53?opendocument

Using this program (if you don't want to modify it, which would take a reasonable amount of time specially if you are not familiar with VI-Based Server) You would have to generate a collum in your spreadsheet file to be the timestamp, it would be a artificial timestamp.

What you could do in your application is to first save the data to file and then read from file, substitute the collum timestamp for the "artificial one" and then write it to the database, again, with that you would not need to modify this program.


However if you have the time and is willing to work with VI-based server you could try to modify the example program to be adapted for your purposes.

I hope it helps


Good Luck

Andre Oliveira
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,374 Views)