You can use MATLAB ® Version R2012a or later to evaluate expressions written in MATLAB syntax in Cameo Simulation Toolkit. You must install MATLAB ® first and set up your system modeling tools to call and use itin Cameo Simulation Toolkit.
Note
title
Note
MATLAB® 2014a on Mac OS is not capable of evaluating and returning values via the Simulation console, which causes MagicDraw to freeze.
For successful integration, you must use either the 64-bit or 32-bit version of MATLAB (Version 2012a or later) to align it with the 64-bit or 32-bit version of modeling tools, e.g., MagicDraw or Cameo Systems Modeler.
For Mac users, Cameo Simulation Toolkit version 18.5 SP2 and later can integrate with MATLAB®2016b seamlessly without disabling System Integrity Protection (SIP) unless it is necessary to disable SIP as a new feature of the latest OS X El Capitan for successful integration.
Warning
title
Warning
To
solve this problem, please consider upgrading MATLAB® 2014a to 2014b or later.
Disabling OS X El Capitan's System Integrity Protection (SIP)
To disable OS X El Capitan's System Integrity Protection (SIP)
Restart your Mac.
As soon as the screen turns black, hold down the command+R keys to access the Recovery Partition.
Release the keys once the Apple logo appears on your screen.
Click the Utilities menu and select Terminal.
Type csrutil disable into the Terminal window and press Return.
The Terminal should display a message that SIP was disabled.
Restart your Mac for the changes to take effect.
Run MagicDraw/Cameo System Modeler and integrate it with MATLAB®.
Integrating MagicDraw or Cameo Systems Modeler with MATLAB® (on Microsoft Windows or Mac OS X)
Note
title
Note
To
enable the Integrations
menu under the Tools main
menu, you must change the perspective to Full Featured,System Engineer,or Software Architect
by doing the following:From
(from the main menu, select Options > Perspectives > Perspectives
. The Select Perspective dialog opens.Select
, select Full Featured,System Engineer,or Software Architect, and click Apply
. The Integrations menu will be enabled.
).
When integrating with MATLAB for the first time or changing the MATLAB version, you must restart your system. If the system has been previously integrated with MATLAB, restart only the modeling tool.
If there are problems with integrating MATLAB on Windows, please ensure that MagicDraw is running with the administrator's privileges, and then try to integrate again.
To integrate a modeling tool with MATLAB (on Microsoft Windows and To integrate MagicDraw or Cameo Systems Modeler with MATLAB® (on Microsoft Windows or Mac OS X)
From the main menu, click Tools
>
>Integrations.
The
The Integrations
dialog
dialog opens.
Image Removed
Image Added
Select MATLAB
® and
and click Integrate/Remove Integration. The MATLAB
® directory
directory selectiondialog opens.
Specify the directory where you installed MATLAB® and click OK
Image Added
Click Browse to specify the MATLAB home directory, e.g., C:\Program Files\MATLAB\R2019b.
Click OK and restart your system or the modeling tool.
Note
title
Note
If there are problems with integrating MATLAB® on Windows, run MagicDraw as an Administrator, and then try to integrate again.
When integrating with MATLAB® for the first time or changing the MATLAB® version, restart your machine.
If the system has been integrated with MATLAB® previously, you do not have to restart the system since system variables have already been updated. Only restart MagicDraw.
You can manually verify the MATLAB integration process, e.g., setting the path of system variables in the Environment Variables to the correct MATLAB path of each operating system, through the following links: