05-12-2022 07:30 PM
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.
Solved! Go to Solution.
05-13-2022 07:08 AM
05-14-2022 09:21 AM
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.
05-15-2022 08:20 AM
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.
05-17-2022 04:34 AM
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