www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgcaloutput/ATI_Vision.m
function out = ATI_Vision(obj,opt) %ATI_VISION Export to ATI Vision. % Copyright 2000-2011 The MathWorks, Inc. % Check inputs narginchk(1,2) if nargin == 2 if strcmpi(opt, 'getname') out = 'ATI Vision'; return else error(message('mbc:cgcalinput:InvalidArgument7')) end end % Get calibration interface if isa(obj.filename, 'calibrationdata.visionv2interface') cal = obj.filename; % interface can be set via the filename property for automated testing ok = true; else [cal, ok] = cgvisionv2interface; end % Abort if failed if ~ok out = false; return end % Export calibration try pm = cgcalgui.progressmanager('Job', 'Export from CAGE'); pCgcaloutputSetCalibration(cal, obj.ptrlist, true, pm); pm.stop; cal.commit; out = true; catch pm.stop; cal.rollback; out = false; end