LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS get position

Solved!
Go to solution

Is there a way to get the current TDMS position? something like the "Get File Position.vi" VI but for TDMS files.

I have a large data file, and I want a way to jump to specified percentage of the file and read it, for ex 30%. I'm thinking to move to the end of the file and get its position's offset, then use that # to determain the 30% position.

0 Kudos
Message 1 of 3
(3,389 Views)
Solution
Accepted by topic author EEOMARK

the channel property contains the # of elements for that channel:

 

NI_ChannelLength

 

You can use it to calculate the starting % and use it to get a fixed number of data points.

 

TDMS file is a structured file.  A random offset most likely is not a valid position for a channel.

 

Joe

Message 2 of 3
(3,358 Views)

Thanks Joe, this works for me.

0 Kudos
Message 3 of 3
(3,269 Views)