Error 56 WebDAV File Transfer In LabVIEW Simple Get Simple Put

Updated Dec 18, 2023

Reported In

Hardware

  • CompactRIO Controller
  • CompactDAQ Controller
  • PXI Controller

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

I am using LabVIEW WebDAV API VIs (Simple Get and Simple Put) to transfer files between my computer and my CompactRIO (cRIO)/CompactDAQ (cDAQ)/PXI controller.  I am getting Error 56 on larger file transfers, indicating timeout.  Previously I was using FTP and I did not receive this error.  From my testing I have found that any file requiring more than a minute to transfer results in the timeout error.  If I use WebDAV via Windows Explorer, I am able to move files around without any timeout issue, but I need to do the file transfers programmatically.  The Simple Get and Simple Put VIs I am using are shown in red rectangle of the image below:

Solution

Use the advanced WebDAV VIs (Asynchronous sub-palette and Synchronous sub-palette) to manually set the session timeout period to a value that will allow your files to completely transfer before timing out.  The timeout period is set in the Session Open VI and by default is 1 minute.

Additional Information

Newer CompactRIO and CompactDAQ controllers running Linux RT OS do not have FTP installed by default due to the security vulnerability of using FTP.  However, you can still set up FTP for your Linux RT controllers.