Code covered by the BSD License  

Highlights from
Simulink Support for Kinect

image thumbnail

Simulink Support for Kinect

by

 

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

hasIMAQBlock(model)
function hasIMAQBlock(model)
% hasIMAQBlock
%  check the model has a IMAQ block.  

%
%   Copyright 2011 The MathWorks, Inc.
%

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

if length(blks) ~= 1
    error('A NID IMAQ block should be placed in the model.');
end

end
% End of function

Contact us