Hi,
I understand that you are experiencing issues with concatenating the data from multiple TDMS-files acquired using NI Signal Express. The code you provided appears to be working for a smaller number of logs but fails when trying to concatenate a larger number of files.
One potential reason for this issue could be memory limitations. As you concatenate more logs, the size of the resulting data arrays increases, which can consume a significant amount of memory. If the available memory is not sufficient, it can lead to the termination of the execution or incomplete concatenation.
To address this issue, you can try the following suggestions:
1. Increase memory allocation: Check if your MATLAB environment has enough memory allocated to handle the concatenation of a larger number of logs. You can adjust the memory allocation by going to the MATLAB Preferences and modifying the 'Java Heap Memory' or 'Workspace' settings. Increasing the memory allocation may allow you to concatenate a larger number of logs successfully.
2. Concatenate in smaller batches: Instead of concatenating all logs at once, you can try concatenating them in smaller batches. For example, you can concatenate logs in groups of 10 or 20 and save the intermediate results. This approach can help manage memory usage and reduce the likelihood of hitting memory limitations.
The down sampled Channel Groups in the TDMS-files may be causing issues during concatenation. You can try removing or excluding these down sampled Channel Groups from your concatenation process to see if it helps resolve the issue.