Example Code

'Create or Replace with Confirmation' functionality for TDMS Open in 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 VI exemplifies how to add the functionality of the "replace or create with confirmation" for the TDMS Open function.

 

Description

This VI use dialogs to get a confirmation from the user.

 

Requirements
LabVIEW Base Development System.

 

Steps to Implement or Execute Code
1. Load "TDMS Open create or replace with confirmation LV 2012 - NI Verified.vi" with a valid input path.
2. The file path should be a file with a *.tdms extension. Otherwise, LabVIEW will add a *.tdms extension to whatever file name you provide, and the "check if the file exists" VI will not find the file under that new file name next time.

 

Additional Information or References

 Snippet 9913.png

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

Misha

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