www.gusucode.com > sigtools 工具箱matlab源码程序 > sigtools/@dspfwiztargets/@realizemdltarget/getdelaylatency.m
function delay = getdelaylatency(hTar, blockhandle) %GETDELAYLATENCY Get the latency of the Delay block. % Copyright 1995-2010 The MathWorks, Inc. b = isspblksinstalled; if b, % Use DSP System Toolbox block delay = get_param(blockhandle, 'delay'); else % Use Simulink block delay = get_param(blockhandle, 'NumDelays'); end