02-27-2013 04:29 PM
I am using FTP to transfer TDMS files from a cRIO to the computer. The transfer looks like it works; however, when I try to open the fiule using the TDMS file viewer, I get an error stating that the file in not a TDMS standards. With that being said, I then use Windows to FTP the same file over to compare. I use the TDMS viewer to open that file just fine... no problems. Have any ideas?
Solved! Go to Solution.
02-27-2013 05:45 PM
Did you find the difference between the size of the TDMS files before and after the transferring? If so, maybe it's very possible that the "transfer mode" of FTP software matters, maybe you can try to use "binary" instead of "text" for the mode?
02-28-2013 07:48 AM
Thanks for the suggestion. I actually had the "binary" boolean as False thinking that the data transfer should be in ASCII form; I was thinking that transmitting TDMS data in binary form would not work because, and I may be wrong but, I thought the data in a TDMS file is in ASCII form. Anyways, long storey short: I took your suggestion and changed the input from a FALSE to a TRUE for the binary option and sure enough it worked like a charm. Good call friend!
07-25-2013 03:26 AM
Just thought I'd add what actually happens as I stumbled across the same thing.
When using ASCII, FTP seems to add carriage return (CR - "0D") in front of line feed (LF - "0A") where in the original file only line feeds exist.
See comparison attached.
Content for a knowledgebase maybe?
10-29-2015 01:18 PM
When I set my FTP vi code to Binary the file will not transfer, when I change it back to false (ASCII) it starts working? What is wrong? Windows 7, Labview 14 on a cRIO
10-30-2015 12:23 PM
Can you post your code? Also, what cRIO are you working with?