LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New to Labview. Is there a TDMS VI I can use to decimate TDMS files

Thank you, that is doing what we want it to but only with the one channel. Is is possible to tie in this TDMS multiple channel read vi that I have attached?

0 Kudos
Message 11 of 20
(1,692 Views)

I only have one group name. The channel names are all different. Im not understanding this. Could you explain how to get all the channels to come up in the new smaller file?

0 Kudos
Message 12 of 20
(1,675 Views)

You can do them one at a time.  If the data types are different between channels this is required if they are not there is the possibility to read multiple channels at once but has other potential issues (like if all channels don't have the same number of samples). 

 

So what you will want to do is create an array of string, and in that array name all the channels you want to do this task for.  Then wire that into a for loop with autoindexing on.  Then do your steps on each channel one at a time, reading at the offset, then writing to the new file under the same channel name.

0 Kudos
Message 13 of 20
(1,671 Views)

All of the channels have the same data type and the same number of samples. I was able to create an array of string and name all the channels but it is unclear to me how to wire it into the for loop(which one and where)? I attached the modified VI. Where do I go from here or am I even on the right track? You are being VERY helpful by the way, Im just a new bee at all this. Thanks for your patience.

0 Kudos
Message 14 of 20
(1,664 Views)

@BreakerBreaker wrote:

All of the channels have the same data type and the same number of samples. I was able to create an array of string and name all the channels but it is unclear to me how to wire it into the for loop(which one and where)? I attached the modified VI. Where do I go from here or am I even on the right track? You are being VERY helpful by the way, Im just a new bee at all this. Thanks for your patience.


I'm confused, does the attatch VI not work?  It looks like it would work just fine, for all groups, for all channels, read a single data point then write to a new file.  What about it isn't working?  I realize you have only one group so the first for loop will only run once but there is nothing wrong with that.

0 Kudos
Message 15 of 20
(1,653 Views)

It's really nice seeing somebody post your code almost completely unaltered.  What are you trying to do with the Path to String Array?  That was the only change you made, so there must be some reason.

 

The problem with the channel names (at least in your test tdms file) is that they are all "Untitled XXX"  where XXX is some number.  The TDMS API reads all of these as "Untitled".  That is why you are getting it read as a single channel.  So you need to change the program that wrote those TDMS files so that there are meaninful channel names.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 20
(1,647 Views)

Is it possible to gererate the channel names using Daq Assistant?

0 Kudos
Message 17 of 20
(1,644 Views)

@BreakerBreaker wrote:

Is it possible to gererate the channel names using Daq Assistant?


Yep.  Just right-click on the channel and choose Rename.  The name information should stay will the waveform.  You are reading the data as a waveform, right?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 18 of 20
(1,638 Views)

@BreakerBreaker wrote:

Is it possible to gererate the channel names using Daq Assistant?


Yep.  Just right-click on the channel and choose Rename.  The name information should stay will the waveform.  You are reading the data as a waveform, right?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 20
(1,635 Views)

Yes we are reading them as a waveform. All 117 of the channels are specifically named in Daq Assistant, they are not Untitled XXX. How come the renamed channels are not going into the TDMS file? Could the data type of the TDMS read be an issue as to why we are not seeing all of the channels?

0 Kudos
Message 20 of 20
(1,629 Views)