sts123 Posted Thursday at 06:24 PM Report Posted Thursday at 06:24 PM My .vi works ok until input file is about 1GB in size. Otherwise, it doesn't run, throwing the error about memory. to_Asci_3_range.vi Quote
cordm Posted yesterday at 07:33 AM Report Posted yesterday at 07:33 AM Two possibilities: use 64 bit version and have more memory, or use the offset and count terminals of TDMS Read to read data subsets. Quote
cordm Posted 21 hours ago Report Posted 21 hours ago Also, if you are exporting large TDMS files to even larger text files, you should think hard if that is really the right move. Find a way to handle TDMS files in the next program. People have written importers for e.g. MATLAB and Python. Quote
sts123 Posted 4 hours ago Author Report Posted 4 hours ago 16 hours ago, cordm said: Also, if you are exporting large TDMS files to even larger text files, you should think hard if that is really the right move. Find a way to handle TDMS files in the next program. People have written importers for e.g. MATLAB and Python. So, MATLAB or Python are more efficient to convert TMDS to .txt? Quote
codcoder Posted 18 minutes ago Report Posted 18 minutes ago (edited) There should be a way to work with very large files in LabVIEW without having to keep the entire file in memory. Many years ago I worked with a very large file in Matlab (well, back then it was a very large file) and I extensively used the function memmapfile: https://se.mathworks.com/help/matlab/ref/memmapfile.html It is a way to map a file on the harddrive and access its content without having to keep the entire file in workspace memory. A bit slower I assume but far less load on the RAM! There must be a similar method in LabVIEW. EDIT: I found this old thread: https://forums.ni.com/t5/LabVIEW/Is-there-a-way-to-read-only-a-portion-of-a-TDMS-file-without/td-p/1784752 This is something similar to what cordm refers to: On 6/30/2025 at 9:33 AM, cordm said: or use the offset and count terminals of TDMS Read to read data subsets. Best practice regardless of language must always be to handle large files in chunks. Edited 10 minutes ago by codcoder Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.