Installation

System requirements

Initially, the same requirements apply to the target for MATLAB®/Simulink® as for TwinCAT 3 C/C++. For a detailed description of the TwinCAT 3 C/C++ requirements, please refer to Chapter 4, "Requirements", of the TwinCAT 3 C++ manual.

In the following sections, these requirements are only referred to briefly, not in detail.

On the engineering PC

On the runtime PC

In addition to the above requirements, which originate from the requirements of TwinCAT 3 C/C++, the following requirements apply to the engineering PC:

Setup instructions

Install one of the supported Visual Studio versions, if not already installed. Pay attention to the installation of the C++ components.
1. Start TwinCAT 3 Setup, if it does not already exist.
If a Visual Studio and a TwinCAT installation already exists but the Visual Studio version does not meet the requirements mentioned above (e.g. Visual Studio Shell or Visual Studio without Visual C++), you first have to install a suitable Visual Studio version (install Visual C++, if necessary). Then run TwinCAT 3 Setup to integrate TwinCAT 3 into the new (or modified) Visual Studio version.
2. If necessary, install the Microsoft Windows Driver Kit (see Installation "Microsoft Windows Driver Kit (WDK)" in the TwinCAT 3 C/C++ manual).
The order in which the Windows Driver Kit was installed is irrelevant.
3. If you do not have a MATLAB® installation on your system, install it. The order in which MATLAB® was installed is irrelevant.
4. Start the setup TE1400-TargetForMatlabSimulink to install the TE1400.
The TE1400 is installed in the TwinCAT folder, i.e. it is separate from the MATLAB® installation. A MATLAB® version that exists on the system can be linked to the TE1400 according to point 6.
5. Start MATLAB® as administrator and execute %TwinCAT3Dir%..\Functions\TE1400-TargetForMatlabSimulink\SetupTwinCatTarget.p in MATLAB®.
A setup window opens. See the following section.


Installation 1:

Installation 2:

User Account Control

If MATLAB® is executed in a system with activated User Account Control (UAC) without administrator rights, the MATLAB® path cannot be stored permanently. In this case, SetupTwinCatTarget.p must be executed every time MATLAB® is started, since otherwise some files required for generating TwinCAT modules cannot be found.

Installation 3:

Driver signing for targets with x64 operating system

To use an x64-operating system as runtime PC, the drivers must be signed. Details can be found in the TC3 C++ manual under Driver signing.