Drake
 All Classes Files Functions Variables
SimulinkModelHandle Class Reference

a utility class to make it convenient to make a piece of data behave like a handle class example usage: mex_model_ptr = SharedDataHandle(mex_model_ptr); now mex_model_ptr continues to act like it did before, but will internally be accessing the shared data structure. More...

Inheritance diagram for SimulinkModelHandle:
Collaboration diagram for SimulinkModelHandle:

Public Member Functions

function SimulinkModelHandle (mdl)
 
function delete (obj)
 disp(['closing ',obj.name]); More...
 
function registerParameter (obj, var, simple_name)
 to share data with the simulink model, it needs to be copied to the base workspace. More...
 
function inheritParameters (obj, from_mdl)
 
function addSubsystem (obj, subsystem_name, subsystem_mdl)
 
function horzcat (varargin)
 the model name is often used in string concatenations to build out other models More...
 
function add_line (obj, varargin)
 
function get_param (obj, varargin)
 
function set_param (obj, varargin)
 
function sim (obj, varargin)
 
function find_system (obj, varargin)
 
function feval (obj, varargin)
 

Public Attributes

Property name
 
Property base_workspace_variables
 

Detailed Description

a utility class to make it convenient to make a piece of data behave like a handle class example usage: mex_model_ptr = SharedDataHandle(mex_model_ptr); now mex_model_ptr continues to act like it did before, but will internally be accessing the shared data structure.

Constructor & Destructor Documentation

function SimulinkModelHandle ( mdl  )
Return values
obj

Member Function Documentation

function add_line ( obj  ,
varargin   
)
Return values
varargout
function addSubsystem ( obj  ,
subsystem_name  ,
subsystem_mdl   
)
function delete ( obj  )

disp(['closing ',obj.name]);

function feval ( obj  ,
varargin   
)
Return values
varargout
function find_system ( obj  ,
varargin   
)
Return values
varargout
function get_param ( obj  ,
varargin   
)
Return values
retval
function horzcat ( varargin  )

the model name is often used in string concatenations to build out other models

Return values
str
function inheritParameters ( obj  ,
from_mdl   
)
function registerParameter ( obj  ,
var  ,
simple_name   
)

to share data with the simulink model, it needs to be copied to the base workspace.

this sets up a simple garbage collector. it's slightly non-trivial, because if the contents of the model are copied to a different model, I have to keep track of how many references are left.

Return values
base_workspace_variable_name
function set_param ( obj  ,
varargin   
)
function sim ( obj  ,
varargin   
)
Return values
varargout

Member Data Documentation

Property base_workspace_variables
Property name

The documentation for this class was generated from the following file: