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.
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.
08-24-2011 08:41 PM
08-26-2011 08:38 AM
I have made some working code. But not with all the feature.
I will share some code soon.
Thank you Andrew Mc and All,
Yogesh Redemptor
09-12-2012 12:32 PM
Hi Andy,
I have a little time right now to work on the new feature in DAQmx. However I have few questions that perhaps you could answer.
1. How to apply custom scales to each of the files saved every 60 seconds? Until now I applied it directly to opened TDMS file just after the logging. Can I get the TDMS file reference from the DAQmx?
2. Is it possible to change the TDMS file names in the way that will have the timestamp from the time where were created? As far as I understand the file name should be specified before the previous one is finished.
Thanks!
--
Łukasz
09-12-2012 12:57 PM
1. How to apply custom scales to each of the files saved every 60 seconds? Until now I applied it directly to opened TDMS file just after the logging. Can I get the TDMS file reference from the DAQmx?
The best way to apply a custom scale is to use DAQmx custom scales. When you call DAQmx Create Channel (or in the DAQ Assistant UI), you can specify a custom scale (linear, table, map, polynomial). This scale will be applied automatically when you read the TDMS data. Would this work for you?
2. Is it possible to change the TDMS file names in the way that will have the timestamp from the time where were created? As far as I understand the file name should be specified before the previous one is finished.
Your understanding is correct. I honestly can't think of a good way to do this now. I would recommend create an idea exchange feature for that idea.
09-13-2012 01:47 AM
Hi Andy,
Thank for your fast reply.
In that case I will think about other naming possibilities or just use already implemented data logging layer based on producer-consumer design pattern.
Actually I also have another question in my mind. In case of data acquisition into split files I sometimes have significant data footprint (many channels and high sample rate) to be stored on external drives. Is there any way to track and expand if needed the circular buffer implemented in DAQmx logging?
Thanks,
--
Łukasz
07-09-2013 11:47 AM
Hi, Andy
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-10-2013 08:53 AM
Hi shalala,
You posted on a thread that is almost ten months old. To ensure faster responses from other customers and from other engineers at National Instruments, it is typically good to create a new thread if one hasn't been touched in awhile.
If you are using a producer/consumer model, there should be no data loss. The actual time of saving may include a delay, but there should be no delay in the samples.
Check out this example that implements data logging with TDMS file splitting.
07-10-2013 10:35 AM
Also posted here:http://forums.ni.com/t5/Multifunction-DAQ/DAQmx-Start-New-File/m-p/2483472#U2483472