DataExchange modules cannot be loaded
Error image when activating a configuration with objects generated from Simulink®:
Error loading repository driver ... TcDataExchangeModules ...
Solution:
In some cases it is necessary to install the so-called DataExchange modules on the engineering PC, so that you can use TwinCAT objects created on another system.
These cases are:
- The created module was created with the “External Mode” option.
- The created module uses the TwinCAT File Writer or MAT file logging.
- The created module contains function blocks from TE1410 TwinCAT Interface for MATLAB®/Simulink®.
In all other cases the created TwinCAT objects have no dependency to the DataExchange modules.
Installation of the DataExchange modules
TwinCAT 3.1 Build 4026
tcpkg install TwinCAT.XAE.TMX.DataExchange
TwinCAT 3.1. Build 4024
The DataExchange-Modules Setup is copied to the following folder with the TwinCAT Tools for MATLAB® and Simulink® Setup, so that the employee who has installed the TE14xx-ToolsForMatlabAndSimulink Setup can distribute the DataExchange modules setup to the colleagues concerned.
<TwinCATInstallDir>\TwinCAT\Functions\TE14xx-ToolsForMatlabAndSimulink\TE140x\SDK