LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File transfer to sbRio-9627

How can i access file system of sbrio-9627 create a folder and perform file transfer on it?

 

0 Kudos
Message 1 of 6
(830 Views)

Hi linu,

 

use the remote control panel for your sbRIO to access its file system.

You can access it either from within MAX or by browsing your sbRIO with a Silverlight-capable browser… (The last time I had to do this I was using LV2017.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(828 Views)

Can please guide me through the steps or provide a reference to some knowledge base article?

0 Kudos
Message 3 of 6
(821 Views)

Hi linu,

 

this or that

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(810 Views)

 Thank you for your help Gerd.




I tried using webDav and this is the error that i get.

 

I am guessing this is due to file access permissions. But I am not sure how i can change the permissions.

IMG-20231123-WA0008.jpg

0 Kudos
Message 5 of 6
(777 Views)

Why do you want to do that?  LabVIEW Real-Time Targets (like the sbRIOs) may "look like" stand-alone PCs, but they are really designed to run as the Real-Time "partner" of a Host routine running on a PC.  In this configuration, the "safe" place to store data files is on the PC, with the data transferred from the sbRIO to the PC over TCP/IP (I use Network Streams to manage this transfer for me).  If you want to keep "parameters" as part of your program, i.e. a local "Data" folder where the sbRIO, while running, can read and write local files, that is easily accomplished by using the \Data folder that the Build creates for you as part of the Destinations category. If you look at the default Build Spec, you'll see that your .rtexe goes into /home/lvuser/natinst/bin, and Support Directory (which I think is there by default) shows up as /home/lvuser/natinst/bin/data.  But how, you might ask, do you remember this?  Answer -- you don't, you ask LabVIEW to create it for you!

 

Here's what you do:

  1. Open your Real-Time Project, which should have a section ("My Computer") for the Host code and a section ("sbRIO", with IP address) for the Real-Time part.
  2. Create a folder at the top level of the Host LabVIEW code called "Data".  I organize my Projects so that there is a top-level "Project Folder" that contains the .lvproj file and (almost all of) the Host and Target LabVIEW code (I tend to organize them in sub-Folders for neatness and ease of finding elements later).  If I look on my PC's hard drive at the contents of the Project Folder, I see that it contains both the "Data" folder and the <Projectname>.lvproj file.
  3. To access the Data folder, look in the File I/O Palette under File Constants.  The Data Folder, whose folder name is "Data", is located as a sub-folder under the folder pointed to by the function "Application Directory".  Do a "Build Path" with "Application Directory" as the Folder, and "Data" as the Relative Path.
  4. OK, but how does that help you with finding the Data Folder in your built Application?  It is in exactly the same place, because (in an Executable) the Application Directory points to where the .exe (or .rtexe) is stored!

Having said all this, I am not routinely doing File I/O on the RT side.  I do, however, use this "trick" on the Host -- during development, when I run from within LabVIEW, my test data files go into the \Data folder within my Project.  But when I build (and deploy) an Executable (.exe) on the Host, it goes in a \Data folder that is one level down from the folder where <My Routine>.exe is stored as part of the Build specification.

 

Bob Schor

 

0 Kudos
Message 6 of 6
(747 Views)