Getdatasize; Getreference - JDS Uniphase SWS15100 User Manual

Swept wavelength systems
Table of Contents

Advertisement

Function
Description
Return Value
When there is no error, the function returns zero.
When there is an error, the return value contains the error number.

getDataSize

Function
Description
Purpose
The getDataSize function retrieves the number of data points in the trace from
the start wavelength to the maximum wavelength defined by LambdaMax in the
SWS15100.INI file.
C prototype
int getDataSize( );
VB prototype
Declare Function getDataSize Lib "SWS15100" () As Long
Input
None
Output
None
Return Value
When there is no error, the function returns the length of the data array or the
number of data points from the start wavelength to the maximum wavelength.
When there is an error, the return value contains the error number (is
negative).

getReference

Function
Description
Purpose
The getReference function acquires a new reference for the specified channel.
The polarization of the new reference is stored in the variable pola. This
function is called after the user acquires raw data through a call to the
triggerTrace and isTraceDone functions, with the setup for channel reference
measurement in place.
C prototype
int getReference( unsigned short chID, short *pola );
VB prototype
Declare Function getReference Lib "SWS15100" (ByVal chID%, ByRef pola%)
As Long
Input
unsigned short chID:
This is the channel ID to be referenced.
short *pola:
Variable pola contains the polarization of the new reference.
Output
None
Return Value
When there is no error, the function returns zero.
When there is an error, the return value contains the error number.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Programming Guide – 133

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents