Code covered by the BSD License  

Highlights from
Simulink Support for Kinect

image thumbnail

Simulink Support for Kinect



25 Jul 2011 (Updated )

Simulink Support for Kinect is a set of Simulink blocks interfaced with OpenNI and Kinect SDK.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

checkBlockSingleton(model, maskType)
function checkBlockSingleton(model, maskType)
% checkBlockSingleton
%  Check number of instances of a NID block. All NID blocks should be single instance (singleton) in a model.  

%   Copyright 2011 The MathWorks, Inc.

blks = find_system(model, 'LookUnderMasks', 'all', 'BlockType', 'S-Function', 'MaskType', maskType);

if length(blks) > 1
    msg = [maskType ' block has to be only single instance in a model.'];


% End of function

Contact us