LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append to remote FTP file using Pharlap

Hi

Currently a colleague of mine has managed to write data from our cFP 2020 to a remote file on an FTP server (using the FTP buffer VI in Labview 7.0). However there does not appear to be any way that he can append additional readings to that file. I would like to know if there is a way to append data to the remote FTP file. We are interested in storing 1 minute's worth of 3.3 second data within the remote file. Our SQL server will then import the flat file every minute into the database.

So my question is, how can I append data readings from my cFP 2020 to remote files on an FTP server?

--Thor
0 Kudos
Message 1 of 3
(2,987 Views)
Hi Thor,

You’ll want to look into the NI LabVIEW Internet Toolkit that will allow you to programmatically send and retrieve files from a remote FTP server.

Additionally, I have attached an example program to demonstrate how to send/retrive files programmatically using the FTP VIs. Note that you will need to have the Internet Toolkit in order to see the FTP VIs.

Hope this helps. Thanks again.

Kileen
0 Kudos
Message 2 of 3
(2,974 Views)
Hi Kileen

The FTP buffer VI is contained within the "NI LabVIEW Internet Toolkit". What we have managed to do is append our 3.3s readings in memory on the cFP. This means the file on the remote FTP server shall then be created once every minute, which contains approx 18 readings. SQL server can then import the flat file on the minute which means we synchronise our data once a minute, which is suitable for SQL.

Thanks for the post.
-Thor
0 Kudos
Message 3 of 3
(2,966 Views)