Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Start New File

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

0 Kudos
Message 1 of 8
(4,850 Views)

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.



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
0 Kudos
Message 2 of 8
(4,840 Views)

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,谢谢!

0 Kudos
Message 3 of 8
(4,820 Views)

I am sorry the VI just now  is mistaken ,

0 Kudos
Message 4 of 8
(4,816 Views)

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.



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
0 Kudos
Message 5 of 8
(4,795 Views)

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.

Download All
0 Kudos
Message 6 of 8
(4,779 Views)

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.



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
0 Kudos
Message 7 of 8
(4,773 Views)

Thank you ,you saved me!

0 Kudos
Message 8 of 8
(4,764 Views)