Campbell Scientific NL121 NL121 Ethernet Module - Page 19

Newest Record, Last 24 Records, Web Begin/Web End

Page 19 highlights

NL121 Ethernet Module GetVariables (Result1,Socket,-1,2,0000,50,"Public","BattVolt",BattVolt_Remote,1) SendVariables (Result2,Socket,-1,2,0000,50,"Public","PTemp",PTemp_Base,1) CallTable(Test) NextScan EndProg 6.2 HTTP Web Server Typing the datalogger IP address into a web browser will bring up its home page as shown in FIGURE 6-1. This default home page provides links to the current record in all tables, including data tables, the Status table, the DataTableInfo table, and the Public table. Clicking on a Newest Record link will bring up the latest record for that table. It will be automatically refreshed every 10 seconds. Links are also provided to the last 24 records in each data table. Clicking on a Last 24 Records link will bring up the last 24 records for that table. The Last 24 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. 11

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

NL121 Ethernet Module
GetVariables (Result1,Socket,-1,2,0000,50,"Public","BattVolt",BattVolt_Remote,1)
SendVariables (Result2,Socket,-1,2,0000,50,"Public","PTemp",PTemp_Base,1)
CallTable(Test)
NextScan
EndProg
6.2
HTTP Web Server
Typing the datalogger IP address into a web browser will bring up its home
page as shown in FIGURE
6-1
.
This default home page provides links to the
current record in all tables, including data tables, the Status table, the
DataTableInfo table, and the Public table.
Clicking on a
Newest Record
link
will bring up the latest record for that table.
It will be automatically refreshed
every 10 seconds.
Links are also provided to the last 24 records in each data
table.
Clicking on a
Last 24 Records
link will bring up the last 24 records for
that table.
The
Last 24 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.
11