Transfer Files From a cRIO to Another WebDAV Server

Updated Dec 16, 2022

Reported In


  • CompactRIO Controller


  • LabVIEW

Operating System

  • NI Linux Real-Time

Issue Details

I would like to send files stored in CompactRIO to another CompactRIO or to another host computer using LabVIEW WebDAV functions. The WebDAV shipping example provided in LabVIEW was configured to get files stored in CompactRIO from the host PC. Therefore, I am wondering if there is a sample example of transferring files between two targets or between a target and the host computer.


To transfer files from one CompactRIO to another CompactRIO or to another host computer, you must specify a WebDAV server and a client, respectively. 

From a cRIO to another cRIO

Install the WebDAV Server software on CompactRIO acting as a WebDAV server and install the WebDAV Client with SSL Support software on the CompactRIO acting as a WebDAV client.

Then, you can perform a file transfer test using the example provided in the following snippet.
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

From a cRIO to another PC programmatically

In case you want to transfer files from a CompactRIO to a PC using WebDAV, you will first have to turn the PC into a WebDAV server, and create a network shared folder to where the files can be sent from the RT. If you are using a Windows machine, you can use Microsoft's  Internet Information Services (IIS) to accomplish this purpose. There are various examples and tutorials online on how to create a WebDAV server on your PC. 

Additional Information

If the files aren't being written in the PC, make sure the File-Based Writer Filter is disabled and the system is allowed to write files.  
This snippet code must include WebDAV Sample Code.ctl and File Info to Name and Please download the attached VI.