Getlocalpassband - JDS Uniphase SWS15100 User Manual

Swept wavelength systems
Table of Contents

Advertisement

getLocalPassBand

Description
The getLocalPassBand function computes the passband of the largest peak
contained in the pPowData power array, within a specified wavelength range.
Call the function after obtaining pPowData array through a call to the
getILTrace function. The refpeak parameter must be specified by the caller.
C prototype
int getLocalPassBand( double *pdLamData,double *pdPowData,unsigned
short dataSize,double dStartWave,double dStopWave,unsigned short
refPeak,unsigned short baseRef,double InterLevel, unsigned short refWave,
double *pdPassBand);
VB prototype
Declare Function getLocalPassBand Lib "SWS15100" (ByRef pLamData As
Double, ByRef pPowData As Double, ByVal dataSize%, ByVal dStartWave As
Double, ByVal dStopWave As Double, ByVal refPeak%, ByVal baseRef%,
ByVal interLevel as Double, ByVal refWave%, ByRef pdPassBand As Double)
As Long
Input
double *pLamData:
The pLamData array stores wavelength points of the trace.
double *pPowData:
The pPowData array stores IL power level (dB scale) points. Each point from
the pPowData array has a corresponding point in the pLamData array.
unsigned short dataSize:
This is the size of arrays pLamData and pPowData allocated by the user. This
is the size of the acquired trace retrieved by the user using the function
getDataSize.
double dStartWave:
Specifies the wavelength at which to start processing.
double dStopWave:
Specifies the wavelength at which to stop processing.
unsigned short refpeak:
This is an integer set of values:
{MAX_PEAK_REF = 0 (find maximum peaks),
MIN_PEAK_REF = 1 (find minimum peaks)}
unsigned short baseref:
This is Boolean. For minimum peaks, the baseref is 1 and the bandwidth of the
peak is calculated from the base of the peak. For maximum peaks, the baseref
is 0 and the bandwidth is calculated from the peak.
150 – Programming Guide
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents