LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -6636 when create a TDMS file

I use the following function to create a TDMS file. I got the error information. What is the problem? I did add the tdms extension name.

 

 

TDMS_CreateFileEx ("filePath", TDMS_Streaming2_0, TDMS_ByteOrderLittleEndian, 0, "DAQ Test",

"My TDMS Test execise_1", "Test Result", "", &tdmsFileHandle);

 

TDMS Error.png

0 Kudos
Message 1 of 2
(4,229 Views)

You must not enclose the pathname in quotes: doing so you are passing an actual file name (without extension) and not the content of the variable with the same name.

You should not receive that error by calling:

TDMS_CreateFileEx (filePath, TDMS_Streaming2_0, TDMS_ByteOrderLittleEndian, 0, "DAQ Test",

"My TDMS Test execise_1", "Test Result", "", &tdmsFileHandle);

 

(It's normally a good habit not to have a variable and its content the same).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(4,218 Views)