Introduction - MapleSim Connector Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : MapleSim Toolboxes : MapleSim Connector : Getting Started Guide : MapleSimConnectorGSG/Preface

Contents     Previous     Next     Index


The MapleSim™ Connector provides all of the tools you need to prepare and export your dynamic systems models to Simulink® as S-function blocks. You can create a model in MapleSim, simplify it in Maple™ by using an extensive range of analytical tools, and then generate an S-function block that you can incorporate into your Simulink® toolchain.

You can also use these tools for exporting mathematical models that you have created from first principles in Maple as S-functions.

Furthermore, various options allow you to use the C code generation feature in Maple to create code libraries of your MapleSim models for implementation in other applications.

Features of this toolbox include:


Maple templates, which provide an intuitive user interface for optimizing your MapleSim model, and then generate an S-function in Simulink®.


A range of examples illustrating how to prepare and export your models.


A direct interface between Maple and Simulink® allows you to generate and test an S-function block as you develop the model.


Commands for developing S-functions of mathematical models from first principles in the Maple environment and examples to illustrate how to do it.


Access to commands in the MapleSimConnector and DynamicSystems packages in Maple for developing automated applications to generate S-functions.

Scope of Model Support

MapleSim is a very comprehensive modeling tool where it is possible to create models that could go beyond the scope of this MapleSim Connector release. In general, the MapleSim Connector supports systems of any complexity, including systems of DAEs of any index, in any mix of domains.


Requires one of the following MATLAB® and Simulink® versions:


MATLAB® 2015b with Simulink®


MATLAB® 2015a with Simulink®


MATLAB® 2014b with Simulink®


MATLAB® 2014a with Simulink®

Also requires Microsoft Visual Studio 2013 or 2015.

For installation instructions and system requirements, see the Install.html file on the product disc.

Adding External Libraries to Your Search Path

You can export a model that uses an external library as part of the model to an S-function block. In order to do this, you first need to add the directory that contains the external library file (that is, the .dll or .so file) to your search path. This involves appending the external library directory to either your PATH environment variable (for Windows®) or your LD_LIBRARY_PATH environment variable (for Linux® and Macintosh®).

To add an external library directory to your search path


Determine the location of the external library directory.

Note: This is the directory that contains the .dll file (Windows) or the .so file (Linux or Macintosh) that is used in your model.


Add the library directory found in step 1 to the appropriate environment variable for your operating system.


For Windows, add the library directory to your PATH environment variable.


For Linux and Macintosh, add the library directory to your LD_LIBRARY_PATH environment variable.

Consult the help for your operating system for instructions on how to edit these environment variables.


Restart your computer.



Contents     Previous     Next     Index