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

    function identifier = phGetIdentifierWithAddress(obj, identifier, address)
%PHGETIDENTIFIERWITHADDRESS  Helper function.

%  IDENTIFIER = PHGETIDENTIFIERWITHADDRESS(CAL,IDENTIFIER,ADDRESS) appends
%  an address ADDRESS to an identifier IDENTIFIER.  Different axes in ATI
%  Vision can have the same identifier, and can therefore only be
%  distinguished by address.

%  Copyright 2004-2005 The MathWorks, Inc.


% Convert address to hex
address = dec2hex(address, 8);

% Append address to identifier
identifier = sprintf('%s_0x%s', identifier, address);