An
Introduction to Network Data Transmission
The goal of this laboratory is to measure a temperature on one computer
and transmit it to another computer. Here are the details.
-
In the data server, modularize
the measurement process to include the following:
-
The Fluke/Hydra should
be reset outside of the measurement loop. To make the process as
fast as possible you should set the Hydra to measure temperature in the
same sub-vi.
The output of that
sub-vi should be an error signal. There are no inputs for this sub-vi.
-
The temperature measurement
should be modularized in a separate sub-vi inside the measurement/data
transmission loop. The input to that sub-vi should be an error signal
(from the reset sub-vi), and the
-
The outer loop should
"listen" for a connection, then move to an inner loop where the temperature
is measured, then transmitted. The temperature data format should
be determined by the following:
-
First measure the length
of the temperature data, and encode the size of the temperature data string
into two (2) bytes, padding the size string if necessary.
-
Then transmit the size
of the temperature string as those two bytes.
-
Then transmit the temperature
data.
-
On the other end, you
need to build a data client that does the following:
-
Opens a connection with
the server.
-
Receives data from the
server. The first data will be the number of bytes in the data string,
and the number of bytes will in turn be encoded into two bytes. Then
you should receive the temperature string data.
-
The temperature string
should be converted to a numerical format and displayed on a thermometer
type of indicator.
Click
here for some questions to answer for this laboratory.
*
TCPIP stands for "Transmission Contgrol Protocol/Internet
Protocol". It is a protocol for transmissions
between computers, and it is an "open standard" so that anyone can create
an implementation if they want to. TCPIP runs on almost every hardware
platform. It's widely used. You will find ways to implement
TCPIP in LabView, C/C++, Visual Basic, etc. Our personal opinion
is that LabView is the easiest way to do it.