

%

%   Copyright 2020-2021 The MathWorks, Inc.

 m = mf.zero.Model;
 profileName = 'Calibration';
 dataProfile = sl.data.annotation.profile.DataProfile.createProfile(m, profileName);
 stereotype1 = dataProfile.addPrototype('Measurement', "", {'<All-Signals>','Inports','Outports',...
     'DataStores', 'SynthesizedDataStores','States', 'Signals'});
 stereotype1.friendlyName = "Measurement";
 prop1 = stereotype1.addPropertyWithFriendlyName('Export','boolean','Export',false);
 prop1.setDefaultPropertyValue('true');
 stereotype1.addPropertyWithFriendlyName('BitMask','string','BitMask',false);
 prop2 = stereotype1.addPropertyWithFriendlyName('CalibrationAccess','AsamCalibrationAccessEnum','Calibration Access',true);
 prop2.setDefaultPropertyValue('''NoCalibration''');
 stereotype1.addPropertyWithFriendlyName('DisplayIdentifier','string','Display Identifier',true);
 stereotype1.addPropertyWithFriendlyName('Format','string','Format',true);
 stereotype1.addPropertyWithFriendlyName('CompuMethod','string','Compu Method',true);
 
 stereotype2 = dataProfile.addPrototype('Calibration', "", {'ModelParameters'});
 stereotype2.friendlyName = "Calibration";
 
 prop3 = stereotype2.addPropertyWithFriendlyName('Export','boolean','Export',false);
 prop3.setDefaultPropertyValue('true');
 stereotype2.addPropertyWithFriendlyName('BitMask','string','BitMask',false);
 stereotype2.addPropertyWithFriendlyName('CalibrationAccess','AsamCalibrationAccessEnum','Calibration Access',true);
 stereotype2.addPropertyWithFriendlyName('DisplayIdentifier','string','Display Identifier',true);
 stereotype2.addPropertyWithFriendlyName('Format','string','Format',true);
 stereotype2.addPropertyWithFriendlyName('CompuMethod','string','Compu Method',true);
 dataProfile.saveToFile();
 
%  resultStr = sl.data.annotation.api.Api.getPrototypesDefinitionByModelingElement('Inports', profileName);
%  systemcomposer.internal.profile.Profile.unload(profileName);

% LocalWords:  Compu Asam XAxis YAxis systemcomposer Asam systemcomposer
