Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 for MATLAB and Simulink Documentation | 2025.2

# Create a new Simulink project and connect to the P4 Server

When you create a new Simulink project the .p4config file might not be present. The following steps will create a new project, connect the project to the P4 Server, and write a .p4config file for the project.

Create a new Simulink project and connect to the P4 Server:

1. From the Home tab, select New > Project > From Simulink Template.

2. In the Simulink Start Page dialog, select the Simple Project template and click Create Project.

3. In the Create Project dialog, enter a name for the project. The project name is then assigned to the project folder name that you create

4. Click the Folder icon in the Create Project dialog to open the Select a Project Directory dialog.
5. (Optional) To change the project directory, click the folder icon and select or create a new project directory.
6. Click OK in the Create Project dialog to create your project.

7. Close the Welcome to your project dailog box to start setting up the P4 source control.
8. From the Simulink Project tab, click Use Source Control to open the Source Control Information dialog.

9. Click Add Project to Source Control...
10. In the Source control tool drop down, select P4 P4SL.

11. To the right of the Repository path field, click Change to open the P4 Connection dialog.

12. Enter the your credentials for the following:

    - P4 Server

    - Username

    - Workspace

    Click Connect.

    The URI is automatically generated and verified when Simulink successfully connects to the P4 Server.

13. Check that your P4 Connection is verified.
14. Click OK to close this dialog.
15. Click Convert to connect to the P4 Server

Your project is now connected to the P4 Server. For details of the P4 Server file and folder operations available to you, see File management.

Your search for returned results