12-06-2011 12:14 AM
I want to share my experience with you in using TDMS files.
When I programmed with TDMS, I got the file error like code 5 or losting file reference.
In LV 2009, no problem but I got the error again in LV2011.
Strangely, error in real-execution but no error in highlight mode(debugging).
Whenever you used TDMS functions, please connect the error terminal to ensure the sequence of execution.
and if you open the file, please close the file in the same level of subvi.
If not, you got the error unexpectedly. What is the worst, no erorr sometimes, so you couldn't shoot the trouble easily.
labmaster.
12-06-2011 12:21 AM
Hi labmaster,
I don't think TDMS should limit users to use the functions/VIs in the same VI, it should be OK to call TDMS functions in different VIs if you pass the file reference to the VIs.
I'm quite curious about the behavior you described, especially when you said the it was OK in LV 2009 but the problem appeared in LV 2011. Is that convenient for you to post a reproducible VI here for us for further investigation?
Thank you,
Yongqing Ye
NI R&D
12-06-2011 05:49 PM - edited 12-06-2011 05:56 PM
For example, when I disconnect the highlight wire of error terminal, LV2009 showed no error but LV2011 can't delete (programmatically) the file even after closing the TDMS file.