slblocks.m
来自「rtai-3.1-test3的源代码(Real-Time Application」· M 代码 · 共 29 行
M
29 行
function blkStruct = slblocks%SLBLOCKS Defines the block library for a specific Toolbox or Blockset.% Copyright 1986-2002 The MathWorks, Inc. % $Revision: 1.1.1.1 $% Name of the subsystem which will show up in the SIMULINK Blocksets% and Toolboxes subsystem.% Example: blkStruct.Name = 'DSP Blockset';blkStruct.Name = ['RTAI' sprintf('\n') 'Devices'];% The function that will be called when the user double-clicks on% this icon.% Example: blkStruct.OpenFcn = 'dsplib';blkStruct.OpenFcn = 'rtai_devices;';%.mdl file% 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: blkStruct.MaskDisplay = 'plot([0:2*pi],sin([0:2*pi]));';blkStruct.MaskDisplay = 'disp(''RTAI'')';% Define the library list for the Simulink Library browser.% Return the name of the library model and the name for itBrowser(1).Library = 'rtai_devices';Browser(1).Name = 'RTAI Devices';Browser(1).IsFlat = 1;blkStruct.Browser = Browser;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?