Greetings,
I have an application where I am streaming data to TDMS. I have set up a channel group and I am able to write to TDMS fine. However, I need to code it so that when the datacount in the first tab (looking at first channel in the group) reaches x-amount, say 1,000,000, I need to dynamically create another tab (channel group) and continue streaming data. The program should just continue to add tabs as they fill up with data.
Maybe there is a simple way to do this but I'm not finding it. In short, I want to just take the channels in the first tab, "copy" them over to a new tab and continue streaming. Through the TDMS methods, I am able to getchannels, getchannelgroups, etc. from the TDMS file. But I cannot seem to add these channels to another channel group (new tab) or the program throws an exception error - "The specified channel is already a member of a TDMS channel group".
The only work around to this, which I have not tried yet, is to make the channel names different on each iteration that I want to add a new channel group. I anticipate that will be very cumbersome. Is there a simpler way to make this work?