07-15-2013 01:09 PM
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?
07-16-2013 08:05 AM
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?
07-16-2013 08:23 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-16-2013 10:02 AM - edited 07-16-2013 10:13 AM
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.
07-16-2013 10:34 AM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-16-2013 11:50 AM
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.
07-16-2013 11:54 AM
Is it possible to gererate the channel names using Daq Assistant?
07-16-2013 12:22 PM
@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?
07-16-2013 12:23 PM
@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?
07-16-2013 01:21 PM
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?