Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id658595918
Content column
id658595921
Content block
id658595920

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 it in Cameo Simulation Toolkit.

Note
titleNote
  • 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
titleWarning

MATLAB® 2014a on Mac OS is not capable of evaluating and returning values via the Simulation console, which causes MagicDraw to freeze. 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®
    Note
    titleNote
    • .

    Integrating MagicDraw or Cameo Systems Modeler with MATLAB® (on Microsoft Windows or Mac OS X)

    • 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 the
    • (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)


    1. From the main menu, click Tools
    2.  > 
    3. > Integrations.
    4. The 
    5. The Integrations
    6.  dialog
    7. dialog opens.
    8. Image Removed

    9. Image Added

    10. Select MATLAB
    11. ® and
    12. and click Integrate/Remove Integration. The MATLAB
    13. ® directory
    14. directory selection dialog opens.
    15. Specify the directory where you installed MATLAB® and click OK

    16. Image Added

    17. Click Browse to specify the MATLAB home directory, e.g., C:\Program Files\MATLAB\R2019b.
    18. Click OK and restart your system or the modeling tool.

      Note
      titleNote
    • 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:

    Info
    titleInformation

    If there are problems with integrating MATLAB® on Windows, run MagicDraw as an Administrator, and then try to integrate again.

    You can also integrate MagicDraw or Cameo Systems Modeler with MATLAB® manually using the following steps.

    children
    Content block
    id658595916

    Related pages