Heya-
I'm using LabVIEW 8.2, professional development system.
I'm using the Open / Read / Close TDMS functions as part of a subroutine in a larger program. The subroutine is supposed to open one of several TDMS files (each of which contains bulk data saved previously), extract the data, then restructure into a 3D array, which is passed back to the main program. The particular file TDMS file to open is controlled by the main program. The TDMS Close function is used after the data is extracted.
When running solo, the subVI performs as expected. When running as a subVI, it functions fine on the first call, but subsequent calls to open different data sets fail to actually open the TDMS file (or at least, the Read TDMS function generates an empty array). However, returning to the orginal file that was opened, the subVI works fine - it opens the TDMS file. It doesn't matter which file was intially used - whichever one was opened first functions fine, any others do not. That would make me think that the first TDMS file isn't being closed, except that I am using the Close TDMS function after reading.
Attached are the subVI (TDMS_to_3D_array), a quick test program that uses the subVI, and a .zip of two data sets
Not sure if the global variables located in the SubVI will default, so they are: UpperMaxCol: 55, UpperMinCo: 0, UpperMaxPixel: 48, UpperMinPixel: 6
Thanks in advance for the help
Dan