No BSD License  

Highlights from
XPC_ADDBLOCKS

image thumbnail

XPC_ADDBLOCKS

by

 

28 Nov 2004 (Updated )

xpc_addblocks does help to make signals clear identificable on a Target Screen.

slblocks
function blkStruct = slblocks
%SLBLOCKS Defines the Simulink library block representation
%   for the xPC Target Additional Blockset.

%   Copyright 1995-2004 The MathWorks, Inc.
%   $Revision: 1.0.2 $  $Date: 2004/10/28 14:13:06 $

blkStruct.Name    = sprintf('xPC\nAddOns');
% blkStruct.Name    = sprintf('xPC\nSpecial\nBlocks');
blkStruct.OpenFcn = 'xpc_addblocks';
blkStruct.MaskInitialization = '';

blkStruct.MaskDisplay = [...
    'plot(' ...
    '[0.212 0.356 0.356 NaN 0.302 0.356 0.41 NaN 0.212 0.5 ' ...
    '0.5 NaN 0.3245 0.212 0.212 NaN 0.284 0.428 NaN 0.284 ' ...
    '0.428 NaN 0.284 0.428 NaN 0.284 0.3965 NaN 0.284 0.365 ' ...
    '],' ...
    '[0.938 0.938 0.776 NaN 0.857 0.776 0.857 NaN 0.776 0.776 ' ...
    '0.6032 NaN 0.308 0.308 0.776 NaN 0.704 0.704 NaN 0.632 ' ...
    '0.632 NaN 0.56 0.56 NaN 0.488 0.488 NaN 0.416 0.416 ' ...
    ']);' ...
    'text(0.4, 0.38, ''xPC'');' ...
    ];

% Define the library list for the Simulink Library browser.
% Return the name of the library model and the name for it
Browser(1).Library = 'xpc_addblocks';
% Browser(1).Name    = 'xPC Special Blocks';
Browser(1).Name    = 'xPC AddOns';
Browser(1).IsFlat  = 0;% Is this library "flat" (i.e. no subsystems)?


% +++ Additional by Frank Gonzalez-Morphy
% +++ Created by 2004-Oct-28
Browser(2).Library = 'xpctgboxlib';
Browser(2).Name    = 'xPC TargetBox';
Browser(2).IsFlat  = 0;
% +++ ---------------------------------------------

blkStruct.Browser = Browser;

% End of slblocks.m

Contact us