Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > ARINC 653 for VxWorks 653 code > Modeling an ARINC 653 configuration and VxWorks 653 application startup code > Defining port usage for an application:
  
Defining port usage for an application:
1. Open the Configuration Diagram that is named <module name> Configuration Diagram.
2. Create the required ports on the Application's Partition. For each port:
a. Click the required toolbar button:
Source Queuing Port
Destination Queuing Port
Source Sampling Port
Destination Sampling Port
b. Click within the Partition, and then drag the port to the required position.
c. Open the port's Property Pages, and then click the Queuing Port or Sampling Port tab.
d. Set the properties as required. For more information, see the related links below.
3. Click the Port Usage toolbar button.
4. For source ports: click the Application Part, and then click the Source Queuing Port or Source Sampling Port.
For destination ports: click the click the Destination Queuing Port or Destination Sampling Port, and then click the Application Part.
5. Ensure that each Sample Port and Queuing Port is linked to at least one Application Part through a Port Usage.
6. If you created new Ports, ensure that each Queuing Port and Sampling Port on the Partition Part is linked to another Queuing Port and Sampling Port on a different Partition Part through a Channel. See Creating a channel between partitions.
You can now define processes for your applications. See Defining a process for an application.