This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Error -2505 When Using TDMS Defragment API With External Drive in NI Linux RT

Updated Jul 16, 2025

Reported In

Software

  • LabVIEW

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

Issue Details

I have a LabVIEW code that uses the TDMS Defragment API with an external drive connected to an NI Linux RT system. Specifically, when I use this API with files smaller than 1GB, it works well. However, when I use it with files larger than 1GB, Error -2505 occurs as below. 

Solution

This a known limitation of TDMS Defragment API in NI Linux RT device while it should be working well in Windows Environment. 

 
Here are a few alternative solutions to consider:
  • Stream the TDMS file to multiple, segmented TDMS files.
  • Reduce the file size for the TDMS based on this KnowledgeBase: How to Reduce Large TDMS File Size
    • Write multiple data points to the TDMS file at once.
    • Use the TDMS Set Properties Function to buffer a configured amount of data before writing to the TDMS file