LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing refnum of an open TDMS file in private data member

I have created a simple class for datalogging.  I am using TDMS and when I open a file I would like to store it's refnum in a private data member.  I can not find a compatible refnum type to store this into.  Any help would be appreciated.
0 Kudos
Message 1 of 4
(2,576 Views)
If you right click on the ref output of the TDMS open function and select create control this will give you a compatible refnum control. You can then copy/paste this into your objects private storage.
0 Kudos
Message 2 of 4
(2,566 Views)
Worked like a champ!  Thanks again.
0 Kudos
Message 3 of 4
(2,564 Views)
I use this trick for creating many of my controls as I know the data type will be correct. It is quite useful, especially for esoteric refnums (user event especially).
0 Kudos
Message 4 of 4
(2,554 Views)