www.gusucode.com > visionhdl 源码程序 matlab案例代码 > visionhdl/NewCustomCtrlSignalsSL_LogicAnalyzer.m

    % Support file for CustomCtrlSignalsExample.m 
% No DSP license required with VHT. Save the logic analyzer code to be able
% to recreate the image if necessary, but don't include it in the example. 
% Run this script after running CustomCtrlSignalsExample. 

la = dsp.LogicAnalyzer('NumInputPorts',8);
addWave(la,'InputChannel',1,'Name','FIn');
addWave(la,'InputChannel',2,'Name','LIn');
addWave(la,'InputChannel',3,'Name','DIn');
addWave(la,'InputChannel',4,'Name','pixIn','Radix','Unsigned decimal');
addWave(la,'InputChannel',5,'Name','FOut');
addWave(la,'InputChannel',6,'Name','LOut');
addWave(la,'InputChannel',7,'Name','DOut');
addWave(la,'InputChannel',8,'Name','pixOut','Radix','Unsigned decimal');

for p = 1:size(pixIn)
  step(la,logical(FIn(p)),logical(LIn(p)),logical(DIn(p)),pixIn(p),FOut(p),LOut(p),DOut(p),pixOut(p));
end