12-12-2015 10:09 AM
Hello everyone,
I find difficulty in saving data to tdms. I have a 2D complex data that must be saved in tdms. How to save data in tdms which is started based on time and ended based on some number of data (It is okay if the data comes late, but in that period the saved data can all be set to zero)? Thanks
It is like i have some exact timeslot to save data. when there is no data received then in that slot data can be set to be zero.
12-12-2015 10:37 AM - edited 12-12-2015 10:38 AM
I do not really understand what you want. Only save data when data is available. Use a producer/consumer design template. Create a time stamp in the Producer loop, and send it beside the 2D data to the consumer loop. In this way you only save data when it arrives, and every data set is uniquely defined by a single time stamp...
"It is like i have some exact timeslot to save data. when there is no data received then in that slot data can be set to be zero. "
But why would waste storage place to only store meaningless zeroes?
12-12-2015 09:56 PM
in my system that i want to build, the 0 is really worthy
12-14-2015 08:22 AM
@jsngnp wrote:
in my system that i want to build, the 0 is really worthy
You try to go in the wrong way. Save only data which contains real information. Why to save zeroes? You know that if there is a bigger gap between to consecutive time stamps, the data is "0". So only save valuable information, and do the extra tricks on the analysis side.
But if you really want to save zero numbers in your TDMS, you can also do it. To be able to help more, and giving better advice, we should see your VI. Upload it so we can check what you tried so far...
12-15-2015 01:32 AM - edited 12-15-2015 01:49 AM
I wanna build radar system, so it's essential enough that 0 data is preserved, Thank you 🙂
12-15-2015 01:45 AM