LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

cvitdms.h error -6614

Solved!
Go to solution

Hi,

 

I have an application using the cvitdms library to create and populate TDMS files. The application is built statically and tested on a two devices where everything works fine. There is a third PC I need to run it on which when the function TDMS_OpenFile() is called it returns error code -6614. 

Looking at the error codes this corresponds to failing to load a DLL. The tdms file is created and goes immediately missing, I found in the Recents folder I can see the tdms file is created but empty, and when I try to go to the original file location it takes me to the location but the tdms is not in there. When trying to open the file from the Recents folder I get two errors from Excel:

 

USI encountered an exception: TDS Exception in Initialize: Tds Error: TdsErrFileNotFound(7):

 

USI encountered an exception: (208): Error while loading model <filename> (TDMS), code: 80

 

What I don't understand is the executable for the application is built statically so what could cause the dll loading to fail? And if the application is working on other devices without this issue what else could cause this? All PCs are windows 10 and up to date. 

 

 

Thanks,

Crystal

0 Kudos
Message 1 of 3
(1,084 Views)
Solution
Accepted by topic author crystal2023

Seems like NI TDMS isn’t or not correctly installed on that PC. NI TDMS is not a standard Windows component so you can update your PC in Windows Update as much as you like but it will not help to get NI TDMS (correctly) onto it.

Did you create a full installer for your CVI application and making sure to include installation support for TDMs to that installer?

 

A static executable does not mean that it contains all the support libraries statically but that it includes the C runtime library statically. 

Rolf Kalbermatter
My Blog
Message 2 of 3
(1,052 Views)

Hi Rolf, 

 

Thank you for the solution it worked! I initially only tried adding the header/dll files into the directory of the executable which didn't work so the full installation did. 

 

Thanks for explaining about what the static executable meant, when the program was built the cmake included the path to the cvitdms.h and library so I assumed it would have built that into the executable as other libraries had been. 

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