Example Code

Timestamp Formatting Using LabVIEW

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 takes the current time and displays the time in hours, minutes and seconds.


Description

The time stamp is first converted to a string, the string is then split into the seperate hour, minute and second categories, this is then also displayed as an array.  


Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

Press Run and wait a few seconds. When you press stop the string and array indicators will be updated.

 

Additional Information or References
VI Snippet

TimeStamp Change Format 2012 NIVerified.png

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

Stephanie L
Applications Engineer
National Instruments UK and Ireland

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