sts123 Posted June 12 Report Posted June 12 In task there is the option to split the file by spanning multiple files over the given number of samples. Any chance I can do this with the LabVIEW code, so I have control over the file names and samples per file? R_R_9_MTDS_2.vi Quote
sts123 Posted June 12 Author Report Posted June 12 So effectively I want to create a variables with file path and samples number. Quote
cordm Posted June 12 Report Posted June 12 Use the builtin TDMS logging function and set the samples per file via property node (DAQmx Read class): https://www.ni.com/docs/en-US/bundle/ni-daqmx/page/multiplefiles.html R_R_9_MTDS_2_CM.vi Quote
sts123 Posted Thursday at 01:28 PM Author Report Posted Thursday at 01:28 PM I've done it like this. Not sure if this is efficient and can avoid missing samples during split. I am using high sampling rates. RR_Spliting_2.vi Quote
sts123 Posted Thursday at 06:05 PM Author Report Posted Thursday at 06:05 PM At the moment, when the tdms i split, every individual fiel has time stamp reset to 0 at the start. Is is possible to do it the way that each file has time stamps that are continuing without disruption right from the beginning? Quote
cordm Posted 11 hours ago Report Posted 11 hours ago I don't think that's true. Most likely a problem with the exporting. Quote
sts123 Posted 7 hours ago Author Report Posted 7 hours ago 4 hours ago, cordm said: I don't think that's true. Most likely a problem with the exporting. You were right. How I could check if the there is not samples missing in-between splitting? This is my exporting vi: to_Asci_3_range_2.vi Quote
cordm Posted 3 hours ago Report Posted 3 hours ago I don't see why there should be samples missing. If writing cannot keep up with acquisition, the DAQmx buffer will overflow and you get an error during acquisition. If you doubt your own code, use the built-in DAQmx logging shown above. Otherwise, use NI_MABase.lvlib::ma_time continuity checker.vi to to build a continuity checker for waveforms 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.