08-22-2013 11:34 AM
I have an array of waveforms, There are several waveforms, occationally one of the wave forms has bad data (NaN) I have removed this but the waveform has two components (the subsequent array) I am trying to delete the same data point (not bad data) in that waveform. If it helps I am trying to do this in a TDMS file I am making an edited copy of the file and it works fine. I have attached what I have so far in my edit TDMS subVI. Any suggestions or solutions are appreciated.
Thanks
Billy
08-22-2013 12:37 PM
I may not be understanding you, but if you have the index of the bad data point in one array, can't you simply apply "Delete from array" to the other arrays?
I would advise that if you have multiple bad points you are trying to remove, that you remove them in reverse order (from the end of the array to the beginning), since the array size is changing and your index values will shift if going in ascending order.
08-22-2013 12:39 PM
the problem is there are around 25 arrays for each group and there are 5 groups and I only want to apply it to one other array but I figured out a way by opening specific channel names when necessary
08-22-2013 12:49 PM
Editing TDMS files is inadvised. You should evaluate those points prior to writing them (I know this doesn't help with your current data files but should help in the future).
08-22-2013 12:51 PM
I would like to implement that but unfortunatly in attempting to improve the performance of the data recording the code exploded and does not work anymore. The original person who wrote it is working on it but till then I have a bandaid
08-22-2013 12:57 PM
The problem with deleting elements from a waveform is that you are causing timing mismatches. A waveform is set up so that each point is at a certain rate (dt). So if you delete an element from the data array, you just caused a time shift on all elements after that deleted element.