Is There an Example for Transferring Files between cRIOs using WebDAV?

Updated Sep 30, 2019

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW

Operating System

  • NI Linux Real-Time

Issue Details

I would like to send files stored in CompactRIO to another CompactRIO 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 CompactRIO.

 

Solution

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

Through the Software Add / Eliminate tab in MAX, you must install the WebDAV Server software on CompactRIO acting as a WebDAV server and install the WebDAV Client with SSL Support software on CompactRIO acting as a WebDAV client. 

And 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.

 

Additional Information

This snippet code must include WebDAV Sample Code.ctl and File Info to Name and Path.vi Please download the attached vi.