Code covered by the BSD License
-
ADVFigure(varargin)
ADVFIGURE M-file for ADVFigure.fig
-
IOConfig(varargin)
IOCONFIG M-file for IOConfig.fig
-
demod_demo
MATLAB Demo for Agilent MXA Signal Analyzer
-
tuneAndListen(varargin)
TUNEANDLISTEN M-file for tuneAndListen.fig
-
ADV_Close()
-
ADV_DataToBuffer( handle, dat...
ADV_DataToBuffer Stores spectrum data into the persistence buffer.
-
ADV_Initialize()
ADV_Initialize Initializes the Advanced Data Visualization library.
-
ADV_Reset( handle )
ADV_INITPERSISTBUFFER Summary of this function goes here
-
ADV_SetDisplayMode( handle, m...
ADV_SETDISPLAYMODE Changes the module to the specified display mode.
-
ADV_Start()
ADV_START Launches the Advanced Data Visualization program.
-
MXA_AcquireData( handle )
MXA_AcquireData Triggers a sweep and reads back the trace.
-
MXA_GetXAxisArray( handle )
MXA_GetXAxisArray Returns an array of the x-axis frequency points.
-
MXA_GetYScaling( handle )
MXA_GetYScaling Returns the y scaling parameters from the MXA.
-
MXA_Initialize( vendor, addre...
MXA_Initialize Initializes the instrument control connection to the MXA.
-
[y,samplePeriod]=saAcquisitio...
-
example6
MATLAB/MXA example 6
-
example8
MATLAB/MXA example 8
-
y=kernelResample2(N,x,start,s...
y=rResampleF(N,x,start,step)
-
y=myamdemod(x,T);
construct a high pass filter
-
y=myfmdemod(x)
-
y=saListen(hnd, fc, bw, time,...
-
AcquireIQdata.m
-
C:\Program Files\MATLAB\R2006...
-
View all files
|
|
| ADV_Reset( handle ) |
function ADV_Reset( handle )
%ADV_INITPERSISTBUFFER Summary of this function goes here
% Detailed explanation goes here
global g_ADVPersistBuffer
global g_ADVPersistAmplPoints
global g_ADVSlope
global g_ADVIntercept
global g_ADVXAxis
global g_ADVYAxis
global g_ADVTraceFIFO
global g_ADVTraceFIFOSize
global g_ADVTraceCount
global g_ADVDisplayMode
% Read a trace to get the number of points
data = MXA_AcquireData( handle );
% Initialize the FIFO
g_ADVTraceFIFO = zeros( size( data, 1 ), g_ADVTraceFIFOSize ) - 150;
g_ADVTraceCount = 0;
% Build the x- and y-axis vectors
g_ADVXAxis = MXA_GetXAxisArray( handle );
if g_ADVDisplayMode <= 1
[yMin, yMax] = MXA_GetYScaling( handle );
g_ADVYAxis = yMax:-(yMax - yMin) / (g_ADVPersistAmplPoints - 1):yMin;
else
g_ADVYAxis = 1:g_ADVTraceFIFOSize;
end
% Create the persistence buffer initialized to zero
g_ADVPersistBuffer = zeros( g_ADVPersistAmplPoints, size( data, 1 ) );
% Get the scaling from the MXA
[yMin, yMax] = MXA_GetYScaling( handle );
% Calculate slope and intercept for determining data position in matrix
g_ADVSlope = (g_ADVPersistAmplPoints - 1) / (yMin - yMax);
g_ADVIntercept = g_ADVPersistAmplPoints - g_ADVSlope * yMin;
|
|
Contact us at files@mathworks.com