This VI demonstrates how to add the timestamp of measurement to a spreadsheet using 2 methods, one that updates the file instantaneously, and the other one writes data one time.
These examples allow you to write timestamps along side your data and then export them to a Spreadsheet.
In this example you will find loops:
Steps to Implement or Execute Code
1. Open the attached VI "Insert Time stamp into Spreadsheet_LV2012_NI Verified"
2. Enter the path for the first and second loops
3. Run the VI
LabVIEW 2012 (or compatible)
Additional Information or References
Since a spreadsheet file is a specialized type of text file, you need to first convert your data and time stamp into a string. This can be done via a few different VIs
Note: you will find in the other attached examples a third loop that writes in the spreadsheet file inside the loop each sample of data. However this method consumes the CPU resources and is not the proper way to write every sample of data specially when loop is running at higher rates (file ill be opened and closed every iteration)
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.