Setunits; Getunits - JDS Uniphase SWS15100 User Manual

Swept wavelength systems
Table of Contents

Advertisement

setUnits

Description
The setunits function sets the units for the X-axis to either nm or GHz, and the
Y-axis to dB or linear (%).
C prototype
void setUnits( unsigned short uhXunits, unsigned short uhYunits);
VB prototype
Declare Function setUnits Lib "SWS15100"
(ByVal uhXunits%, ByVal uhYunits%,)
Inputs
unsigned short uhXunits:
Two constants, UNITS_NM and UNITS_GHZ, are valid inputs for the X units.
unsigned short uhYunits:
Two constants, UNITS_DB and UNITS_PERCENT, are valid inputs for the Y
units.
Outputs
None
Return Value
When there is no error, the function returns zero.
When there is an error, the function returns an error number.

getUnits

Description
The getunits function finds the current units for the X-axis (either nm or GHz)
and the Y-axis (dB or linear (%)).
C prototype
void getUnits( unsigned short *uhXunits, unsigned short *uhYunits);
VB prototype
Declare Function getUnits Lib "SWS15100"
(ByRef uhXunits%, ByRef uhYunits%,)
None
Inputs
Outputs
unsigned short *uhXunits:
One of two constants, UNITS_NM and UNITS_GHZ, are returned for the X
units.
unsigned short *uhYunits:
One of two constants, UNITS_DB and UNITS_PERCENT, are returned for the
Y units.
Return Value
When there is no error, the function returns zero.
When there is an error, the function returns an error number.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Programming Guide – 157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents