Using large .daq files
Mostra commenti meno recenti
How do I figure out how many data points are in a large .daq file if the file is too large to open at once? My files range from 2 GB to 28 GB. I can only read a portion of them at a time by using:
daqread('Myfile.daq', 'Samples', [1 10000000]);
I want to loop through the large file in increments but I don't know when to terminate the loop. Without knowing how many data points there are my loop will inevitably attempt to access a point that does not exist.
Risposta accettata
Più risposte (1)
Walter Roberson
il 4 Mar 2011
0 voti
When I look at the documentation, I do not see any easy way to calculate or display the number of samples available. I would have expected daqread('Myfile.daq','info') to return information such as that, but it does not appear to.
What happens when you attempt to read a sample that does not exist?
If need be, you could put the daqread() in a try/catch block -- though narrowing in on the actual number of samples might possibly be a nuisance.
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!