Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Save file to USB device

Solved!
Go to solution

Dears, I bother you to ask if it is possible to save a file to a USB device using Labview on my Rpi.
I have been able to easily save files to any folder on my Rpi using "Build Path", but am unable to do so to a USB device plugged into my Rpi.
I wait.
Total thanks.

0 Kudos
Message 1 of 5
(1,509 Views)

Have you mounted the drive?  Once it is mounted you should be able to see it and save to it just like you did for any other folder.  If you are having a issue with getting the correct path please post the exact pathing issue you are having.

David Wilt
The New Standard LLC
0 Kudos
Message 2 of 5
(1,483 Views)

David, thanks for the reply.
I attach three images, one with the path where my Rpi mounts the USB drive, another with the small VI with which I want to create a .csv file inside the USB drive and the last one (NO_FILE) where you can see that the file is not there created in VI.
Doing the same with any folder inside my Rpi, yes I can create the .csv file. Of the latter, I also attach two images, one with the VI that creates the test_usb.csv file and the other with the file created inside a folder in my Rpi.
I hope it is understood.
Greetings.

0 Kudos
Message 3 of 5
(1,471 Views)

With the information you have provided I assume it is a pathing/access issue.  To confirm that you can put an indicator on your error out from the write to file VI.  What error do you get?

 

I assume that the issue has to do with the fact that LabVIEW is running in its own chroot and does not have access to the USB drive which is mounted in the root file system.  I do not have personal experience on how to resolve this but I did find this article which shows that you can give a chroot access to certain folders: Make an external folder available into a chroot environment.  I would try using this method to make a folder in the LabVIEW chroot which mounts the USB drive.

David Wilt
The New Standard LLC
0 Kudos
Message 4 of 5
(1,450 Views)
Solution
Accepted by topic author Choke

Hi,  

Maybe this will help. I had similar issue a while back. 

 

https://forums.ni.com/t5/Hobbyist-Toolkit/Cannot-see-mounted-HDD-in-Raspberry-PI-4/m-p/4147761

Message 5 of 5
(1,432 Views)