www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@calibrationdata/@visionv2interface/pGetIProject.m
function value = pGetIProject(obj, value) %PGETIPROJECT Private get method. % Copyright 2004-2005 The MathWorks, Inc. if isempty(obj.Connection) % No connection value = []; else % Try to use cache if obj.UseCache cIProject = obj.cIProject; if isempty(cIProject) % No information in cache elseif ~ishandle(cIProject) % Stale interface else % Cache looks OK value = cIProject; return end end % Look for devices (with strategies) iProject = obj.Connection.GetCurrentProjectInterface; obj.cIProject = iProject; value = iProject; end