How to Upload Files using FTP in LabView, ftp in labview, ftp labview, labview ftp
Hello friends, I hope you all are doing great. In today's tutorial, I am gonna show you How to upload Files using FTP in LabView. It's gonna be a quick tutorial as there's not much to do :) but you have to read and follow it carefully because if you made even a small mistake then it won't work. FTP is an abbreviation of File Transfer Protocol and using FTP we can easily upload or download files from our web server. We can use different FTP clients like FileZilla in order to do it manually but today we are gonna have a look at How to upload files automatically using FTP in LabView. So, let's get started with FTP in LabView:

How to Upload Files using FTP in LabView

  • When you are working on some Embedded project where you need to upload your sensor's data on some web server then you need to use FTP.
  • For example, if you are working on Home Automation or some security project and you want to display the values of your sensors on some online website, then in such situations you can easily use FTP and can upload your sensor's data.
  • There are many different ways to use FTP but if you are using LabView then here's how you are gonna upload it.
  • First of all, what you need to do is, you need to save your sensor's data in a txt or csv file.
  • After that simply Log in your FTP account and upload that file on your server.
  • Here's the screenshot of my LabView code which is uploading the data.txt file on my website using FTP.
How to Upload Files using FTP in LabView, ftp in labview, ftp labview, labview ftp
  • In the first TextBox, you need to give the Password of your FTP account.
  • In the second TextBox, you need to give the Username of your FTP account.
  • In the third TextBox, you need to give the IP Address of your website, don't use the name of your site it doesn't work in LabView. You have to find the IP Address of your site which you can easily find using some online tool and place it in this TextBox.
  • In the fourth TextBox, you need to give the File Location, where you want to save your file on the server.
  • In the fifth TextBox, you need to give the File Location on your Laptop.
  • I have used FTP put File fuction of LabView and when you press the button Boolean, then it will automatically Log in to your FTP account and will upload the file.
  • It will hardly take 1 sec for the whole process.
  • You can download this LabView code by clicking the below button and don't forget to change all these values otherwise it won't work. :)

Download LabView Simulation

  • Once the file is uploaded on your server, you can then use PHP to extract and display it on some web page.
So, that was all today. I hope now you can easily upload your files via FTP in LabView. If you still got into some trouble then ask in comments and I will try my best to resolve them. Will meet you guys in the next tutorial. Till then take care and have fun !!! :)