An
Introduction to TCPIP
The goal of this laboratory is to get you familiar with TCPIP*
connections in LabView. The first thing you need to do is to build
a server for temperature data. Here is what you need to do.
-
Modularize your code from
the temperature measurement problem using the LM35. You should create
two sub-vis. One just resets the instrument. The other one
takes a single measurement.
-
Choose the code that you
want. Copy the code into a new vi.
-
In the new vi, add controls
for inputs and indicators for outputs. Use only those controls and
indicators for inputs and outputs you want.
-
Choose Edit-Create
Subvi.
-
Edit the connectors for
the vi. You can add connectors, then connect them to the controls
and indicators you added in the previous step.
-
When you have all of that
take care of, you can check out your sub-vi by saving it.
*
TCPIP stands for "Transmission Control 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.