2 %SLBLOCKS Defines the block library 
for a specific Toolbox or Blockset.
 
    3 %   SLBLOCKS returns 
information about a Blockset to Simulink.  The
 
    4 %   
information returned is in the form of a BlocksetStruct with the
 
    7 %     Name         Name of the Blockset in the Simulink block library
 
    8 %                  Blocksets & Toolboxes subsystem.
 
    9 %     
OpenFcn      MATLAB expression (
function) to call when you
 
   10 %                  
double-click on the block in the Blocksets & Toolboxes
 
   12 %     
MaskDisplay  Optional field that specifies the Mask Display commands
 
   13 %                  to use for the block in the Blocksets & Toolboxes
 
   18 %   The Simulink Library 
Browser needs to know which libraries in your
 
   19 %   Blockset it should 
show, 
and what names to give them.  To provide
 
   21 %   
array element for each library to display in the Simulink Library
 
   24 %     Library      File name of the library (mdl-file) to include in the
 
   26 %     Name         Name displayed for the library in the Library 
Browser 
   28 %                  same as the mdl-file name.
 
   33 %      % Define the BlocksetStruct for the Simulink block libraries
 
   36 %      
blkStruct.Name        = ['Simulink' sprintf('\n') 'Extras'];
 
   41 %      % Both simulink 
and simulink_extras show up in the Library 
Browser.
 
   50 %   Copyright 1990-2006 The MathWorks, Inc.
 
   51 %   $Revision: 1.20.2.7 $
 
   54 % Name of the subsystem which will show up in the Simulink Blocksets
 
   55 % 
and Toolboxes subsystem.
 
   60 % The 
function that will be called when the user 
double-clicks on
 
   66 % The argument to be set as the Mask Display for the subsystem.  You
 
   67 % may comment this line out 
if no specific mask is desired.
 
   69 % No display for Simulink Extras.
 
   75 % information for the Simulink block library 
and the second for the
 
   76 % Simulink Extras block library.
 
   80 Browser(1).IsFlat  = 1;% Is this library "
flat" (
i.e. no subsystems)?
 
   82 %
Browser(2).Library = 'bcvtb_extras';
 
   83 %
Browser(2).Name    = 'BCVTB Extras';
 
   84 %
Browser(2).IsFlat  = 1;% Is this library "
flat" (
i.e. no subsystems)?
 
   90 % Define information about Signal Viewers
 
   92 Viewer(1).Library = 'simviewers';
 
   99 % Define information about Signal Generators
 
  107 % Define information for model updater
 
function described below The Simulink Library Browser needs to know which libraries in your Blockset it should and what names to give them To provide this information
 
blkStruct ModelUpdaterMethods fhUpdateModel
 
function described below The Simulink Library Browser needs to know which libraries in your Blockset it should and what names to give them To provide this define an array of Browser data structures with one array element for each library to display in the Simulink Library Browser Each array element has two fields
 
This file compiles the BSD socket interface for Simulink It is called by ant On it requires the Microsoft compiler Note
 
end Establish the socket connection if and(libisloaded(BCVTBLIB),(status==1)) sockfd
 
This file compiles the BSD socket interface for Simulink It is called by ant On it requires the Microsoft compiler since matlab requires the size of output arrays to be fixed If more elements are required
 
if(strcmp(os,'windows'))%have Windows LIBBCVTB
 
function[retVal, flaRea, simTimRea, dblValRea]
 
Define information for model updater blkStruct ModelUpdaterMethods fhDetermineBrokenLinks
 
Define the Browser structure array
 
function described below The Simulink Library Browser needs to know which libraries in your Blockset it should show
 
The argument to be set as the Mask Display for the subsystem You may comment this line out if no specific mask is desired Example
 
Is this library flat(i.e.no subsystems)?%Browser(2).Library
 
disp('***Generating mex file') legacy_code('sfcn_cmex_generate'
 
The argument to be set as the Mask Display for the subsystem You may comment this line out if no specific mask is desired sin([0:2 *pi]))