08-17-2015 04:09 PM
I have been extremely useless all day looking at a small vi and pondering what is wrong with it!Eventually I have now given up!
I am trying to write some additional information at Channel level after acquisition is stopped. So I use following vi. Unfortunately, I am legally bound not to share full vi!
TDMS file seems to be skipping element 0 of above 'all_channel_array' upon first iteration and creates
a new row for the missed channel in the end of other channels. Following image might highlight this problem.
As you can see Main Pump is the first channel, however TDMS did not set property for it it and created an additional row in the end! Is it easier to find my obvious mistake?
08-18-2015 05:17 AM
Hi there k-waris,
Just to make sure I understand you correctly, are you saying that the Main Pump row at the bottom of the table shouldn't be there, and that you want to see something different in the column where it says DT_DOUBLE? What is it that you're expecting to see here?
Thank you,
Cody
08-18-2015 07:13 AM
Hi CBond
Sorry for lack of clarification. The whole row 'Main Pump' should not be there at the bottom as it was already added in first row.
Cheers
K Waris
08-18-2015 11:10 AM
Hi,
The only reason I can think of for the Main Pump row being written twice is it being written twice somewhere in your code. Since you can't send the full code over, I suggest you look through it to find a possible place where it has been written again by mistake.
08-18-2015 02:40 PM
@CBond wrote:
Hi,
The only reason I can think of for the Main Pump row being written twice is it being written twice somewhere in your code.
Of course it is being written twice in his code. I'm assuming it is being written many times, but it should append the data if the string and group are the same.
I would try to make sure that the exact string being used for defining the group and channel are the same. Is it possible there is some unprintable character, or a space, so that the TDMS doesn't realize these are the same, but in Excel it doesn't show this information?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord