Example Code

Genreate an Array of Timestamps and Write to a Spreadsheet

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example creates an array of time stamps and writes them to a spread sheet which can used to accompany the data you need to generate.

 

Description

This VI was created as per request.  This array creates an array of time stamps and writes them to a spread sheet which can used to accompany the data you need to generate.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Specify the path of folder that you want to save "timestamps.dat" file.
  2. Run the VI.
  3. Negative to the folder specified and open the "timestamps.dat" file to view the timestamp data.

 

Additional Information or References

VI Snippet

1.png

 

A Examples of Sample Output

Tuesday, September 27, 2011 4:23:21 PM

Tuesday, September 27, 2011 4:23:22 PM

Tuesday, September 27, 2011 4:23:22 PM

Tuesday, September 27, 2011 4:23:23 PM

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Sincerely,

Greg S.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.