Campbell Scientific NL120 NL120 Ethernet Module - Page 14

FTP Server

Page 14 highlights

NL120 Ethernet Module Records Display must be manually refreshed. In addition, links are provided to all HTML files, all XML files, and all JPEG files in the datalogger. FIGURE 6-1. Datalogger home page If there is a default.html file on the datalogger, this will automatically become the user-configurable home page. The WebPageBegin/WebPageEnd declarations and the HTTPOut instruction can be used in a datalogger program to create HTML or XML files that can be viewed by the browser. For more information on using these instructions, see the datalogger manual or CRBasic Editor Help. NOTE FileOpen() and FileWrite() can be used to create HTML pages, but this requires first writing the file to the datalogger's USR drive. It is less convenient, and the page will be only as current as it is written to the file. 6.3 FTP 6.3.1 FTP Server With an NL120 attached, the datalogger will automatically run an FTP server. This allows Windows Explorer to access the datalogger's file system via FTP. In the FTP world, the "drives" on the datalogger are mapped into directories (or folders). The "root directory" on the datalogger will include CPU and possibly USR. The files will be contained in one of these directories. Files can be pasted and copied to/from the datalogger "drives" as if they were drives on the PC. Files on the datalogger drives can also be deleted through FTP. 8

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

NL120 Ethernet Module
Records Display must be manually refreshed.
In addition, links are provided to
all HTML files, all XML files, and all JPEG files in the datalogger.
FIGURE 6-1.
Datalogger home page
If there is a default.html file on the datalogger, this will automatically become
the user-configurable home page.
The WebPageBegin/WebPageEnd declarations and the HTTPOut instruction
can be used in a datalogger program to create HTML or XML files that can be
viewed by the browser.
For more information on using these instructions, see
the datalogger manual or CRBasic Editor Help.
FileOpen()
and
FileWrite()
can be used to create HTML pages,
but this requires first writing the file to the datalogger’s USR
drive.
It is less convenient, and the page will be only as current as
it is written to the file.
6.3
FTP
6.3.1 FTP Server
With an NL120 attached, the datalogger will automatically run an FTP server.
This allows Windows Explorer to access the datalogger’s file system via FTP.
In the FTP world, the “drives” on the datalogger are mapped into directories
(or folders).
The “root directory” on the datalogger will include CPU and
possibly USR.
The files will be contained in one of these directories.
Files can
be pasted and copied to/from the datalogger “drives” as if they were drives on
the PC.
Files on the datalogger drives can also be deleted through FTP.
NOTE
8