04-21-2023 05:26 AM
Hi, I need to read in my labview vi the TDMS file lenght attribute. For example i've attached a TDMS file and i don't know how can i return 6 from the file attributes. How can i do? Thanks
Solved! Go to Solution.
04-21-2023 06:09 AM
@tj1995 wrote:
Hi, I need to read in my labview vi the TDMS file lenght attribute. For example i've attached a TDMS file and i don't know how can i return 6 from the file attributes. How can i do? Thanks
Check TDMS Viewer to View the Information and you can get to know what's the Group/Channel and count you need to provide to Read TDMS File.
04-21-2023 06:53 AM
I save my DAQ acquisitions in this file TDMS that contains arrays with different rows. In my vi i need to know how many rows and columns the file has. This is my problem and i don't know how do that.
04-21-2023 08:14 AM
The TDMS Viewer that was mentioned already is an open set of VIs that shows how to do this. To read the number of groups, use the TDMS List Contents with nothing wired to the group name. This will return the array of Group Names. If you want to know the number of channels within a group, wire a group name to the TDMS List Contents and it will return an array of channels under that group. If you want to know the number of samples under a channel, within a group, use the TDMS Get Properties, where you wire the group and channel, with the property to read being the string "NI_ChannelLength" and the data type being an I64 numeric.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-21-2023 10:10 AM
I've tried in this way, but it doesn't work. Have I made some mistakes?
04-21-2023 10:24 AM - edited 04-21-2023 10:26 AM
@tj1995 wrote:
I've tried in this way, but it doesn't work. Have I made some mistakes?
Have you tried TDMS Viewer?
Try this you will get the measurements based on Channel Names.
04-21-2023 10:41 AM
Yes, I've tried, but I can't get out from the file the information about the lenght (6) of the file...
04-21-2023 10:52 AM
@tj1995 wrote:
Yes, I've tried, but I can't get out from the file the information about the lenght (6) of the file...
Sorry it was my fault i shared the read data instead of properties..
04-21-2023 11:19 AM
thank you!!