1
Using TCP/IP
Using TCP/IP
New Template 2005
2
About TCP/IP
TCP/IP (Transmission Control Protocol/Internet Protocol) is the standard for network communications.
In addition to the default pipes-based communication protocol, you can use TCP/IP communication
Adams/Controls. TCP/IP-based communication allows you to run Adams on one workstation while
running controls software, such as Easy5 or MATLAB, on a second networked machine of the same or
different architecture. In the Adams/Controls communication protocol, the controls software is the client
and Adams is the server.
Two methods are available for setting up TCP/IP communication between Adams and Easy5 or
MATLAB:
• Using an Adams daemon started with the adams_daemon.py script
• Using an Adams server started with the adams_server.py script
Once started, the Adams daemon is available to sequentially service requests from clients for successive
Adams simulations. When a client terminates an Adams simulation, the daemon becomes available to
start another Adams simulation for the next client. The daemon does not terminate until you explicitly
terminate it from the operating system.
The Adams server, on the other hand, serves only one client. When the client terminates, the server
process also terminates. Functionality of the Adams daemon supersedes that of the Adams server.
3
Using TCP/IP
Starting the Adams Daemon Process
To start the Adams daemon process:
1. On the workstation on which you will run Adams daemon process, export the Adams plant as
instructed in Exporting Adams/Controls Plant Files. Verify that the name automatically detected
for Adams Host is a fully qualified hostname. (To be fully qualified, the hostname must contain
the workstation and domain name.) If the Adams Host is not fully qualified, edit the value in the
text box so that it is fully qualified.
2. Select OK, and then exit Adams/View.
3. Move or copy the .inf or .m file created in step 2 to the directory on the client machine from which
you intend to run Easy5 or MATLAB.