07-08-2013 08:30 AM
hello, would you please give me a simple example to illustrate how to use "DAQmx Start New File.vi", thank you very much!
Chen yang
07-08-2013 10:31 AM
I'm not sure exactly what you are looking for. The function is simple to wire up. Are you just not sure what to use it for?
The DAQmx Start New File VI can be used when you are using the DAQmx Configure Logging to stream your data straight to a TDMS file. You can change what file is being saved to on-the-fly by using the DAQmx Start New File. This is often done to keep the file size from getting too large.
07-08-2013 08:20 PM
Thank you for replying me!
I want to save data with no loss in mutiple TDMS files, and I have wired up a VI with this function, but it seems something wrong, would you please modify it for me.
thank you,谢谢!
07-08-2013 08:39 PM
I am sorry the VI just now is mistaken ,
07-09-2013 07:30 AM
Give this guy a try. You don't need the Change Log File since you already stated how many samples per file. Your main problem was that you needed to setup the task to run continuously instead of finite samples.
07-09-2013 12:06 PM
thank you , perhaps i havn't expressed myself clearly, the vi you gave me seems do not work ,
I want to save data in multiple TDMS files with no data loss between two contiguous files. I don't know how to achieve that with DAQmx Start New File, and I choosed the producer-consumer pattern and I setted the time length for each file to 60-s. The problem is that there is about 0.2-s data loss between two files, which means the start time of a file is not equal to the end time of the previous file, the length between them is about 0.2s. As I reduce the lengh of each file , the data loss also decreases. Do you know how to make the data to be continously saved with no loss. I am not sure whether I have expressed myself clearly, thanks.
07-09-2013 01:56 PM
Ok, after playing around a little I think we also need to manipulate the Logging File Write Size. This is the number of samples that gets written to the file in a chunk. The File Sample Size needs to be a multiple of this number.
07-09-2013 10:12 PM
Thank you ,you saved me!