LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to update a webpage every minute with new info

I have a Server, a computer with a connection, I know HTML and i know how to FTP manualy... but how would I go about taking a spreadsheet file, and uploading it every minute (everytime there is a value change). Basicly Ill be saving the spreadsheet every minute to an HTML file.. all i need to know is how to upload that to a server.

Thanks,
-Mark
0 Kudos
Message 1 of 2
(2,570 Views)
There are several ways to do it -- you can use the System Exec.vi to run an FTP command and upload the file. Note that the command line FTP in Win2K and (I believe) XP accepts parameter files which can include multiple commands to be run in a given called session.

You could also get the LabVIEW Internet Developers Toolkit and use the FTP VIs in that toolkit. I don't know if NI has started to publish a new version, but the IDK stuff written for LV5-6 has some quirks in the FTP VIs.

There's also probably other methods -- emailing the file to a script on the server, using Java (or Javabeans) to dynamically update the file, etc. Depending on your server setup, just FTPing a new file up every minute might not result in the new file being displayed -- many HTTP s
ervers cache pages and might have to be commanded to refresh that file every minute from disk.
0 Kudos
Message 2 of 2
(2,570 Views)