LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to search a property value in a TDMS and return the group name.

Hi.
Please help

I want to search a TDMS file by property value and then return the group names or channels.
I am using labview 8.2 with the connectivity toolkits.
0 Kudos
Message 1 of 6
(3,711 Views)
Use FileIO->Storage API. Configure "Read Data" with your property name, wire value and comparison operator (if necessary), use "Get Properties" to get the group/channel name from the result refnum(s). Note that you need to search for channels and groups separately.
Herbert
0 Kudos
Message 2 of 6
(3,704 Views)
I try your sugestion but I get an error in the block diagram, I gues becouse I have already open the TDMS file. So I try again in a new VI and I was able to run it complete with no error but I get no display. Do I need to search and read for each specific group/channels?
0 Kudos
Message 3 of 6
(3,684 Views)
What's the error number / message? Be aware that the second connection needs to be read-only if you already have a writable connection open.
Herbert
0 Kudos
Message 4 of 6
(3,674 Views)
The error # is -2558

I try to close the TDMS file before it reach the search part but still give me the error code -2558



0 Kudos
Message 5 of 6
(3,668 Views)
Actually, you're not. There is no "Close Storage" Express VI. If you add that, your code should work.
Herbert
Message 6 of 6
(3,660 Views)