07-31-2018
02:31 AM
- last edited on
03-14-2019
02:18 PM
by
NIadmin
Is there a way to export a higher precision timestamp when using the Export to CSV function on a tag's history?
Solved! Go to Solution.
07-31-2018 12:22 PM - edited 07-31-2018 12:28 PM
The export to CSV does not support higher precision timestamps at the moment. However, you can get that data using a HTTP call to the tag service. If you don't specify that you want it in the CSV format, it will provide the data in a JSON string. In the body of the response, there will be a 'values' field that will contain each value and value information (like timestamp). You would just have to parse that JSON string to get the information you need. If you wanted it in the CSV format, you could then write the file to CSV in a VI. I've attached a VI that you can use to make this query.
I do want to mention that if you're looking for higher precision than seconds, you should be sure to provide a timestamp when writing to the tag. The Write Tag VI has an input for that.
08-01-2018 03:35 AM
Thanks very much for the example VI.