Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Save to file on raspberry pi using Linx

Solved!
Go to solution

I am collecting sensor data using a raspberry pi and Linx and transferring that to a webserver running on the pi. Is it possible to save the sensor data on the raspberry pi or using the webserver? I have tried saving txt and tdms files but I didn´t get any error and I cannot located the file on the raspberry. 

 

 

0 Kudos
Message 1 of 4
(2,770 Views)
Solution
Accepted by topic author UNOKenneth

That's because the LabVIEW runtime executes in a chroot environment. That is a lightweight virtual machine solution for Linux. Lightweight because it doesn't completely virtualize everything but rather relies for some parts on the host file system. Basically your labview chroot environment is for the most part located in the host system inside /srv/chroot/labview. If you go there you most likely will see at least part of the filesystem that you saw from within the chroot directory.

Rolf Kalbermatter
My Blog
Message 2 of 4
(2,762 Views)

Hi Rolf, 

 

I have access to the raspberry pi filesystem after applying the chroot ssh trick and using the System Exec.vi I can list the files in the /var/lib/schroot/mount/lv/usr/local/natinst/labview path. I thought that would be the place it would store files. But if I go to the /srv/chroot/labview then I see my text file!!! Thanks a lot! Strange that it didn't come up in the search I did on the raspberry pi - maybe I made a mistake. 

 

I didn´t see the TDMS file I tried to create, but as long as the text storing function is working - I´m very happy!

 

As a last note I really think that the Linx is a awesome tool. Now I have a webserver deployed that is collecting home sensor data and surveillance video from the raspberry pi cam and the esp32cam. With the option to control the pins on the raspberry pi to control other devices. 

 

Again thanks for help.

 

- Kenneth

0 Kudos
Message 3 of 4
(2,730 Views)

Rolf,

Thanks for the explanation of files on the raspberry pi.  The one thing omitted and discovered by brute force is that using a path of root (/) is what gets you to the folder /src/chroot/labview when you save or load a file.  Everything else is relative to that.

 

Regards,

Bill

GCentral
0 Kudos
Message 4 of 4
(2,258 Views)