From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-09-2018 04:03 AM
Hi,
I`m just starting out with LabView so I apologise for any obvious questions..
In my current project I'm trying to read a .txt file from a measurement device (Red Pitaya with Linux/Ubuntu running on it; connected via Ethernet) to plot a graph from x&y values.. I would have to somehow automatically navigate to the folder where the file is and use it as input.
The options I've found so far is TCP connection with the Listen.vi or some kind of SSH-connection via (Extra-)Putty.. Not sure how to exactly go about it though..
If anyone of you could lead me into the right direction I'd highly appreciate it!
Solved! Go to Solution.
10-09-2018 04:52 AM
you need a solution for sharing file. SAMBA or FTP.
Benoit
10-09-2018 06:45 AM
Not FTP, that's ancient and very unsecure. Sending pw as plain text over the network is bad, even if it's a private network.
I'd go for WebDAV or Samba. A WebDAV (or FTP) server in Linux should be a piece of cake. Not sure how easy Samba is, but all options are probably just software configuration on the Linux side.
Samba would mean you have a network path to access the file. FTP or WebDAV would require using the FTP or WebDAV VIs that (AFAIK) ship with (newer versions of) LabVIEW.
10-09-2018 09:23 PM
lol you are funny!
No FTP but you suggest it...
10-10-2018 02:51 AM
Thanks, I`ll try both options!
In my case security has low priority as I`m just communicating with a measuring device.
10-10-2018 02:52 AM - edited 10-10-2018 02:54 AM
I think I`ll give the FTP VI a go!
10-10-2018 03:03 AM
Sigh.
I mentioned FTP among the other options, as some comments apply to FTP as well. I didn't suggest FTP, but if you must use FTP, go ahead.
I don't see why you would use FTP. WebDAV works the same, but safe.
10-10-2018 03:05 AM
I thought FTP is easier to implement as I found a good youtube tutorial about that, but if WebDav is similar I`ll go for this then!
10-10-2018 03:35 AM
@redpiII wrote:
I thought FTP is easier to implement as I found a good youtube tutorial about that, but if WebDav is similar I`ll go for this then!
No hands on experience, but from LabVIEW PoV it wouldn't make much difference. With a new RT target, I think WebDAV is actually easier as it's OOTB, while FTP is a legacy technique.
Not sure how installing it on Linux works. My guess is both a WebDAV and FTP server are just a few clicks. I think WebDAV file sharing is done with NFS.
Both FTP as WebDAV (HTTP) can be done over a secured connection (SFTP and HTTPS). HTTP would be another advantage of WebDAV, as corporate firewalls often block (S)FTP.
According to this, Samba will be even easier to set up. That will probably be easy from LV PoV as well...
10-10-2018 06:23 AM - edited 10-10-2018 06:26 AM
So if I understand correctly, I need to install a WebDav server on my linux device so that I can read the files with the other PC via Labview? My Linux device doesn`t have internet (I`m just connected with the PC via Ethernet cable), can I still i install the server?