From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Does anyone know, if there is TDMS advanced function that allows span mutiple files to be created according to the number of samples? Something like DAQmx Logging.
In the end, the problem I have is that every time I want to create a new file to continue storing data, I have to reload all the properties. That is, I would like to be able to obtain a copy of all the properties.
Use a DAQmx Read Property Node. One of the available properties is Logging->Samples Per File. That will tell DAQmx to start a new TDMS file after X samples were written to the file.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Having trouble getting that to work in loops with Nchannels and NSamp. Also tried "start new file" vi. Any tips/links to examples of use in a while loop?
You sound like you're trying to set the "Samples per File" property inside your loop. You need to set it before the loop instead - something like this:
Here I used a small number of samples per file, so you can see I'm creating lots of files pretty quickly. You probably want a larger number of samples per file for a real system (but I wanted to check it was working quickly).