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

multilinktgtpref_setChipListPath()
function ret = multilinktgtpref_setChipListPath()
%   MULTILINKTGTPREF_GETCHIPLISTPATH Interactively queries and sets 
%   the path to custom chip registration files in the Application 
%   Preferences based on user selection. Returns selected path.
 
%   Copyright 2006-2010 The MathWorks, Inc.
%   $Revision: 1.1.6.1 $  
%   $Date: 2012/04/02 21:36:35 $

ret = [];

% Let the user pick the folder for saving the custom chip list file
msg = ['Choose a folder to save the new processor definition file to. ' ...
    'This folder will be saved into the MATLAB preferences. ' ...
    'Once saved, the folder location cannot be changed. ' ...
    'You must have write permission for this folder.'];

dir = uigetdir ('C:\', msg);

if (dir~=0)
    ret = [char(dir) '\']; % converts Java string when necessary
    ghsmultiext.Utilities.multilinkpref('setpref', 'NewProcessorDefinitionFolder', ret);
end

Contact us