It makes no sense to write the channel name every time with TDMS write. You could easily improve write performance and disk utilization if you stored the channel names once and used a smaller alias to them (see example below). There are other work arounds including buffering
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9reSAC&l=en-US
But the downside of buffering is that the data is stored in memory so if you lost power, you would potentially be missing a large chunk of data. Also, this solution is compatible with the buffering idea in that this would make the files even smaller.
In my example even after just 100 writes, the example using the lookup table is 20% smaller.
We can also get even bigger gains if instead of using hex-ascii strings for the short names, we used an integer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.