LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Info] Error code 5 with TDMS

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.

0 Kudos
Message 1 of 3
(3,056 Views)

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

0 Kudos
Message 2 of 3
(3,053 Views)

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. 

0 Kudos
Message 3 of 3
(3,042 Views)