Setting the MATLAB Path
To reset the MATLAB path and add the OpenECU blockset, follow these steps:
(Optional) Restore the default MATLAB path by running
restoredefaultpath
in the MATLAB command line. Usually, you can skip this step unless your MATLAB path is corrupt.Change the MATLAB working directory to the OpenECU directory. For example,
C:\openecu\platform\2_2_0_r2013-2_x86-32\openecu
.Execute
oe_switch_version
. This will display a dialog window listing all installed versions of OpenECU (see image below).Select the OpenECU version you want to use.
Switch the MATLAB working directory to the folder containing the Simulink model you’re working on.
Example Commands at Matlab Prompt
>> restoredefaultpath % optional - restore MATLAB default path
>> cd('C:\openecu\platform\2_2_0_r2013-2_x86-32\openecu') % switch to the OpenECU directory
>> oe_switch_version % run script to set the path for OpenECU
>> path % check if the path was updated
OpenECU Switch Version
