Operation; Tcp/Ip Functionality; Communicating Over Tcp/Ip; Data Callback - Campbell NL116 Instruction Manual

Ethernet and compactflash module
Table of Contents

Advertisement

NL116 Ethernet and CompactFlash
7.

Operation

7.1

TCP/IP Functionality

7.1.1 Communicating Over TCP/IP

7.1.1.1 Data Callback

12
®
Module
CR1000
(Sending from computer to datalogger; retrieving from datalogger to computer)
PakBus: 30 KBytes/sec; 30 KBytes/sec
FTP/HTTP: 55 Bytes/sec; 90 KBytes/sec
CR3000
(Sending from computer to datalogger; retrieving from datalogger to computer)
PakBus: 65 KBytes/sec; 65 KBytes/sec
FTP/HTTP: 135 KBytes/sec; 210 KBytes/sec
This section describes the main TCP/IP functionality of a datalogger with an
NL116 attached. Additional functionality may be added in the future. For
more information, refer to the Information Services section of the datalogger
manual and CRBasic Editor help.
Once the datalogger, the NL116, and LoggerNet have been set up as described
in Sections 4.1, Physical Setup
communication is possible over TCP/IP. This includes program send and data
collection. These are straightforward operations and are accomplished through
the LoggerNet Connect screen. For more information, see the LoggerNet
manual.
Data callback and datalogger-to-datalogger communications are also possible
over TCP/IP, as well as the creation of simple HTML pages to view datalogger
variables using a web browser.
The following program is an example of doing data callback over TCP/IP. It
first checks to see if a port to the LoggerNet server already exists. (The
LoggerNet server is assumed to be at the default PakBus address, 4094.) If not,
a socket to LoggerNet is opened using the TCPOpen() instruction. The
SendVariables() instruction is then used to send data.
, and 4.2, Communicating via Ethernet
(p. 2)
,
(p. 3)

Advertisement

Table of Contents
loading

Table of Contents