09-19-2019 12:27 PM
Hello everyone,
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.
Thank you.
09-19-2019 12:53 PM
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.
08-11-2021 05:56 PM
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?
08-12-2021 03:45 AM
Hi Ollie,
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).