www.gusucode.com > Arduino_Engineering_Kit_Hardware_Support_18b 工具箱matlab源码程序 > Arduino_Engineering_Kit_Hardware_Support_18b/simulink/blocks/slblocks.m

    function blkStruct = slblocks
% SLBLOCKS Defines the block library for MKR Motor Carrier and Sensors
% libraries

%   Copyright 2018 The MathWorks, Inc.

blkStruct.Name = sprintf('ArduinoEngineeringKit');
blkStruct.OpenFcn = {'mkrmotorcarrierlib'};
blkStruct.MaskInitialization = '';
blkStruct.MaskDisplay = 'disp(''ArduinoEngineeringKit'')';

Browser(1).Library = 'mkrmotorcarrierlib';
Browser(1).Name    = sprintf('Simulink Support for Arduino MKR Motor Carrier');
Browser(1).IsFlat  = 0; % Is this library "flat" (i.e. no subsystems)?
blkStruct.Browser = Browser;

% Define information for model updater
blkStruct.ModelUpdaterMethods.fhSeparatedChecks = @ecblksUpdateModel;
 
% LocalWords:  Arduino Engineering Kit