⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adv_reset.m

📁 MATLAB是一个非常好的用于测量
💻 M
字号:
function ADV_Reset( handle )%ADV_INITPERSISTBUFFER Summary of this function goes here%   Detailed explanation goes hereglobal g_ADVPersistBufferglobal g_ADVPersistAmplPointsglobal g_ADVSlopeglobal g_ADVInterceptglobal g_ADVXAxisglobal g_ADVYAxisglobal g_ADVTraceFIFOglobal g_ADVTraceFIFOSizeglobal g_ADVTraceCountglobal g_ADVDisplayMode% Read a trace to get the number of pointsdata = MXA_AcquireData( handle );% Initialize the FIFOg_ADVTraceFIFO = zeros( size( data, 1 ), g_ADVTraceFIFOSize ) - 150;g_ADVTraceCount = 0;% Build the x- and y-axis vectorsg_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 zerog_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 matrixg_ADVSlope = (g_ADVPersistAmplPoints - 1) / (yMin - yMax);g_ADVIntercept = g_ADVPersistAmplPoints - g_ADVSlope * yMin;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -