This project demonstrates use of TCP Transforms as a server and client. In the sample, the server echoes messages back to the client.

Click here to download the project: https://github.com/DanlawMxTeam/Samples/raw/master/IPNetwork.rar

Prerequisites

Applies to:

MxSuite 3.38 or later

Other Requirements:

The user should have an understanding of MxSuite Scenarios, TestCases, and Transforms.

Description

The Harness consists of a Delay Transform, and two TCP Transforms, one configured as an IP Server and the other configured as an IP Client. The Delay Transform is used to connect the Read and Write ports on the IP Server in a loop.

IP Network Harness

IP Network Harness

To run the test, run TestScenario. The Scenario should pass.

In the Loopback TestCase, you can observe:

The Client Data Write Signal transmits messages to the port of the same name on the IP Client. These messages are read back from the Client Data Read port. You can use the Transition List to see the contents of the messages.

Commands are transmitted to the IP Client by the Client Command Signal. You can observe the resulting changes to the Client Status Signal. The sample does not perform pass/fail checking on the status.

The Server Command Signal transmits command to the IP Server. You can observe the resulting changes to the Server Status Signal. The sample does not perform pass/fail checking on the status.

The project uses the RT Clock.

The commands and statuses are represented by Enums. You can see the Enum Master List in the Signal Dictionary.

IPnetwork-Enums

 

Related Topics:

TCP Transform

Delay

Using the Transition List