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.

Set up default settings and set MATLAB® path 1:

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:

SetupTE14xx('Silent', true);

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.

Set up default settings and set MATLAB® path 2:

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

Set up default settings and set MATLAB® path 3:

The following setting options are available in the dialog:

The hierarchy is shown in TwinCAT using the following example:

Set up default settings and set MATLAB® path 4:

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.

Set up default settings and set MATLAB® path 5:

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.