07-08-2016 06:02 PM
I'm looking at the TDMS Get Properties Function documenation and I see that there's a property: wf_samples which "Represents the number of samples in the first data chunk". Is there a way to get the number of samples in, say, the second data chunk? My goal is to get the number of samples in all the data chunks for one channel.
Solved! Go to Solution.
07-11-2016 02:54 AM
@nanocyte wrote:I'm looking at the TDMS Get Properties Function documenation and I see that there's a property: wf_samples which "Represents the number of samples in the first data chunk". Is there a way to get the number of samples in, say, the second data chunk? My goal is to get the number of samples in all the data chunks for one channel.
Hope First page of TDMS File contains overview of the data present in the file, so by querying from there we can get the necessary output
Just have a try!
07-11-2016 03:32 AM
To retrieve the total number of samples I use the "NI_ChannelLength" properties to be connected to the TDMS Get properties function.
The outbut I64 gives you the total number of samples of the selected channel.
see attached if useful
marco
04-21-2021 01:14 PM - edited 04-21-2021 01:15 PM
But there is no such "NI_channel_length" option in my TDMS Get properties. What should I do?
04-21-2021 01:30 PM
I don't understand exactly what you mean by "no option". You appear to be showing us the inputs and output from the context help. Did you see the image that Marco posted? You need to create a string constant that goes into the "property name" input. You can then type in "NI_ChannelLength" into the constant.
04-21-2021 11:21 PM
OK. Thank you for the valuable information. Actually I am new to LabVIEW and I didn't get it first time while looking in to the picture.