Example Code

Create New File Every N Minutes

Code and Documents

Attachment

Overview
This example VI Illustrates the use of Seconds To Date Function to create a new file every N Minutes.

Description

This VI demonstrates retrieving a specific target's information using RT Get Target Information (All) and a specific information field. This field is used to filter the discoverable Real-Time targets for a specific target's information. Out of this specific target's information, specific fields can be unbundled such as the IP address. The "DNS Name" field used is the same as the target's "Hostname" in Measurement & Automation Explorer. This same technique can be used to applied to any field in the cluster of information returned by RT Get Target Information VI. Also, this example can be further modified to return information for the set of matching targets instead of a single target's information.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI " Create New File Every X Minutes 2012 NIVerified.vi"
  2. Input a time interval.
  3. Run the VI.
  4. Check the generated files in default data directory.

 

Additional Information or References
VI Snippet

Block Diagram.png

 

 **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.

Comments
MartinOZ
Member
Member
on

This example fails if minute jumps from 59 to 0!