当前位置: 首页 > 工具软件 > Vantage > 使用案例 >

vantage 显示小函数

司徒云
2023-12-01

从RcvBuffer中显示或获取RF数据:

用户可以从RcvBuffer中获取/显示RF数据。
eg:第一个Buffer,第一帧,第三个获取,通道32:

plot(RcvData{1}(Receive(3).startSample:Receive(3).endSample,32,1))

显示模拟发射场的信息

showTXPD

通过showTXPD可以显示模拟发射场的信息

通过外部函数绘制指定射频数据

Process(2).classname = 'External';
Process(2).method = 'myFunction';
Process(2).Parameters = {'srcbuffer','receive',... % buffer to process.
                        'srcbufnum',1,...
                        'dstbuffer','none'};      % no output buffer

 Event(n).info = 'noop';  % noop between frames for frame rate control
 Event(n).tx = 0;         % no transmit
 Event(n).rcv = 0;        % no rcv
 Event(n).recon = 0;      % no reconstruction
 Event(n).process = 2;    % external processing function
 Event(n).seqControl = 1; % reference for ‘noop’ command


function myFunction(RData)
persistent myHandle
channel = 10;  % Channel no. to plot
if isempty(myHandle)||~ishandle(myHandle)
    figure;
myHandle = axes('XLim',[0,1500],'YLim',[-2048 2048], …
                'NextPlot','replacechildren');
end
plot(myHandle,RData(:,channel));
return

对于接收滤波器相应:

运行VSX脚本后,通过以下函数可以获得滤波器响应:

>> freqz([Receive(1).InputFilter,Receive(1).InputFilter(20:-1:1)])
>> freqz([Receive(1).LowPassCoef,Receive(1).LowPassCoef(11:-1:1)])
 类似资料: