LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM properties being written in random columns

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!

 

TDMCh0Analysis.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

 

TDMSFile.PNG

 

 

 

 

 

 

 

 

 

 

 

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?

ATE and Labview Consultant
https://www.easybodge.com
0 Kudos
Message 1 of 5
(3,080 Views)

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

0 Kudos
Message 2 of 5
(2,975 Views)

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

ATE and Labview Consultant
https://www.easybodge.com
0 Kudos
Message 3 of 5
(2,950 Views)

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.

0 Kudos
Message 4 of 5
(2,911 Views)

@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?

0 Kudos
Message 5 of 5
(2,885 Views)