2.2. Installation of the MATLAB Client

Add the path of the downloaded folder FORCES_PRO to the MATLAB path by using the command addpath DIRNAME, e.g. by typing:

addpath /home/user/FORCES_PRO

on your MATLAB command prompt. Alternatively, you can add the path of the FORCES_PRO folder via the graphical user interface of MATLAB as seen in Figure 2.1.

../_images/Installation_SetPath.jpg

Figure 2.1 Adding the FORCES_PRO folder to the MATLAB path.

2.2.1. System requirements

FORCES PRO is supported on Windows, macOS and the different Linux distributions.

For the MATLAB and Simulink interfaces, 32 or 64 bit MATLAB 2012b (or higher) is required. Older versions might work but have not been tested. A MEX compatible C compiler is also required. A list of compilers that are supported by MATLAB can be found in https://www.mathworks.com/support/sysreq/previous_releases.html.

Run:

mex -setup

to configure your C compiler in MATLAB.

2.2.2. Keeping FORCES PRO up to date

FORCES PRO is actively developed and client modifications are frequent. Whenever your client version is not synchronized with the server version, you will receive a code generation error notifying you that your client is out of date.

To update your client simply type:

updateClient

on your MATLAB command prompt. updateClient without any arguments uses the default embotech server to grab the client, and updates all corresponding client files. The command:

updateClient(URL)

overrides the default server selection and uses the server located at URL instead.

Alternatively, the FORCES PRO client may also be updated through Python, see Keeping FORCES PRO up to date.