www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevtestplan/DataLinkPtr.m
function p = DataLinkPtr(T,Dp) %DATALINKPTR returns the pointer to the data used in the testplan % Copyright 2000-2014 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin==1 if isa(T.DataLink, 'xregpointer') p = T.DataLink; else % In older mbc files T.DataLink is a sweepsetfilter and the upgrade occurs % after this function is called - thus ensure that an xregpointer is always % returned p = xregpointer; end else T.DataLink = Dp; xregpointer(T); p = T; end