www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@calibrationdata/@visionv2interface/pGetDescription.m

    function value = pGetDescription(obj, value)
%PGETDESCRIPTION  Private get method.

%  Copyright 2000-2005 The MathWorks, Inc.


value = 'ATI Vision 2.x';

connected = obj.Connected;
if ~connected
    value = sprintf('%s (not connected)', value);
    return
end    

filename = obj.Filename;
if isempty(filename)
    return
else
    value = sprintf('%s project "%s"', value, filename);
end

device = obj.Device;
if isempty(device)
    return
else
    value = sprintf('%s, device "%s"', value, device);
end

strategy = obj.Strategy;
if isempty(strategy)
    return
else
    value = sprintf('%s, strategy "%s"', value, strategy);
end

calibration = obj.Calibration;
if isempty(calibration)
    return
else
    value = sprintf('%s, calibration "%s"', value, calibration);
end