LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error code " -2501 " in FTP.

Hello,

      I'm running an application on the sb-rio and in a particular part of the code i have to FTP a ".tdms" file and 2 ".csv" file from the sb-rio to the FTP host server. The .tdms file is FTPd first and 5 sec later  2 .csv files. The .tdms file got sent to the server but the .csv files did not.

 

There is a display on the controller which shows current status of the job and one of them is to indicate that these files were sent and there it displays this error code. This situation is very rare, happened twice over last two months. it displays error code " -2501 ".

 

One observation is that i have a shared variable array of strings which i read every 500ms. This variable was not getting updated i.e it was empty. if i run the LabVIEW VI then i dont see this issue but only if application is run.  I would need help in understanding this. i'm notting getting help for this error code either.

0 Kudos
Message 1 of 12
(4,349 Views)

Hi koushik_Shetty,

 

We had a couple of custome reports that they also have the similar problem you have, happened rarely, not easy to reproduce. The reason is commonly about FTP trasfer mode, did you notice in which mode you configured for the FTP transferring, binary or ASCII? For TDMS it should be binary. And antoher way to verify is that, maybe you can keep the TDMS files in local and to see wether the local TDMS files also have the -2501 problem.

 

I'm also a little bit curious of your use case, do you mean you write some TDMS files on sb-rio and then you have to write some program as a service running in sb-rio side and periodically check whether there's any new TDMS files generated and if so, upload to the FTP server? Could you please share with us if convenient?

 

Thanks!

 

Yongqing Ye

NI R&D

Message 2 of 12
(4,323 Views)

Hi Yongqing Ye,

          Thank you for the reply. The FTP mode is in binary. Yes on the sb-rio side there is a service routine which detects the presence of .TDMS files and .csv files and regularily uploads these files ,if any, to the FTP server. What is interesting is that this error happened only during the ".csv" files transfer.the .tdms got FTPd though. the delay between .tdms ftp and .csv ftp is ~ 5 seconds since i have some processing to be done for the .csv files. 

 

    Since then i'm not able to reproduce the error nor its happening which as you pointed is hard to debug. if you do have any other options do let me know

 

  Thank you once again.
cheers

 

 

0 Kudos
Message 3 of 12
(4,305 Views)

Also the .csv file is getting transfered in ASCII mode. .tdms in binary mode.

0 Kudos
Message 4 of 12
(4,302 Views)

Hi koushik_Shetty,

 

Maybe the next step we can try is to take a look at the .tdms file, is that convenient for you to share the .tdms file with us? Thanks.

0 Kudos
Message 5 of 12
(4,299 Views)

HI Yongqing Ye,

           I have attached a couple of .tdms files for you reference. these tdms file correspond to the the ones during which the error occured. Sorry for the delay.

0 Kudos
Message 6 of 12
(4,291 Views)

Hi koushik_Shetty,

 

Thank you for your quick reply and the attached TDMS files.

 

I have LabVIEW 2013 installed on my machine and I can open your attached TDMS files without any error or problem.

 

1) Could you please try delete the .tdms_index file on your machine and then open the .tdms file again?
2) If it still shows the error -2501, cold you please let me know what version of LabVIEW you installed?

 

Thanks again!

0 Kudos
Message 7 of 12
(4,285 Views)

Hi Yongqing Ye,

        I have deleted the tdms_index files and i have no problem opening the .tdms file on my machine. Are you suspecting there was a error related to .tdms file which caused this issue?. is it related to closing of the .tdms file?i have LabVIEw 2012 installed. i'l check how i'm handling my tdms file in the sb-rio too. Thank you

0 Kudos
Message 8 of 12
(4,276 Views)

Do you know from which VI you got the "-2501" error? Because "-2501" error won't be thrown out from an corrupted TDMS file but more like an error when the fileId of a TDMS node input is somehow invalid/incorrect.

0 Kudos
Message 9 of 12
(4,274 Views)

Hi deppSu,

           when i detect that i need to ftp the .tdms file i close the tdms file and then pass the path and error out to the FTP put vi. if error could happen it should be after FTP put. This is say because i try FTP once on the .tdms file and if it fails i do ftp again and then only if no errors i ftp the .csv files. if there was error i would display on the board that ftp error occured and retrying FTP again. but this message does not appear for ftp of the .tdms files but only happens after i try to ftp .csv files. this is why i'm confused. hope i'm clear

Thank you

0 Kudos
Message 10 of 12
(4,267 Views)