How to Set TDMS File Permission in LabVIEW

Updated Jun 9, 2021

Environment

Software

  • LabVIEW

I am using TDMS Defragment function in my application and realize that the file permissions granted for “Users” is removed when using this function. How to set TDMS file permission back in LabVIEW ?

This is the expected behaviour when using TDMS Defragment function. The primary workaround is using the System Exec VI with icacls to re-add those permissions by following the picture below.

1.PNG

"Users" permission have been granted to the TDMS file :

3.PNG