05-21-2014 07:11 AM
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);
05-21-2014 08:04 AM
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).