Highlights from
Embedded Coder Support Package for Green Hills MULTI IDE (R2012b)

image thumbnail

Embedded Coder Support Package for Green Hills MULTI IDE (R2012b)

by

 

Embedded Coder integration for creating models that run directly in Green Hills MULTI IDE

getGHSMULTIAutomationHandle(ProjectBuildInfo)
function handle = getGHSMULTIAutomationHandle(ProjectBuildInfo)
% GETADAPTORAUTOMATIONHANDLE automation handle factory

%   Copyright 2009-2011 The MathWorks, Inc.

hostname = ghsmultiext.Utilities.checkPrefEntry('hostname');
portnum  = ghsmultiext.Utilities.checkPrefEntry('portnum');

disp(sprintf('### Connecting to MULTI(R) through IDE Link Service (%s @ %d)', ...
    hostname, portnum)); %#ok<DSPS>

try
    id = ghsmulti( ...
        'hostname', hostname, ...
        'portnum', portnum, ...
        'timeout', ProjectBuildInfo.mTimeout); 
    id.set('buildtimeout', ProjectBuildInfo.mBuildTimeout);
    handle = id;
catch constException
    if (~isempty(regexpi(constException.identifier,'multilink')))
        rethrow(constException);
    else
        newex = MException('GHSMULTIEXT:autointerface:CannotConnectToIde', DAStudio.message('GHSMULTIEXT:autointerface:CannotConnectToIde'));
        newex = addCause(newex, constException);
        throw(newex);
    end
end


end

Contact us