Set up default settings and set MATLAB® path
Initial setup of the software
Setting MATLAB® paths
As described under Installation, the files SetupTE14xx.p must be executed after the software installation. This script adds the necessary paths to your MATLAB® path. MATLAB® administrator rights are required to save MATLAB® paths.
![]() | Run SetupTE14xx.p additionally after each product update To ensure that all paths are set in the MATLAB® path, please also run the p-file after updating the product. |
Set default settings
The script also opens a dialog in which you can save general default settings for the TwinCAT target. These settings then apply system-wide, i.e. for all installed MATLAB® versions.
If you want to execute the p-file without this dialog, you can use the following command:
The default values of the dialog are set.
You can make the settings at this time or make/change them at a later time.
In the dialog under the Build tab, you can store a default certificate for driver signing. The setup options for driver signing are explained in full in the chapter Setting up driver signing.

The hierarchy of the generated TwinCAT objects can also be influenced in the dialog.

The following setting options are available in the dialog:
- VendorName
- GroupName (MATLAB®) and
- GroupName (Simulink®)
The hierarchy is shown in TwinCAT using the following example:
- VendorName “TE140x Module Vendor”
- GroupName “TE140x”
- “MATLAB Modules” for MATLAB® and
- “Simulink Modules” for Simulink®

Change the software setup
To change the default settings of the TwinCAT target, you can access a dialog in the MATLAB® Console as follows:
TwinCAT.ModuleGenerator.Settings.Edit
Here you are offered various entries that you can store as default values.

Accept changes
- 1. Enter the new default settings in the dialog box.
- 2. Confirm with the Save button.
- 3. Restart MATLAB®.
- The changes have been adopted.