Communicating with an embedded simulation object

Embed provides a support library that contains API functions to support code generation. These include, among other things, numerical integration, transfer function filter, time delay, and pulse train. The support library resides in the <install-directory>\CG\LIBRARY directory.

Embed also includes a sample file that invokes the API and shows how calls are used. This file, named SIMOBJ.C, resides in \CG\LIBRARY.

To communicate with your simulation object

1.    Open your custom application file.

2.    Create a handle to your simulation object using the createSim function.

3.    Make calls to the vsmCgRuntime command.