EasyManua.ls Logo

JDS Uniphase SWS15100 - Setunits; Getunits

Default Icon
251 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming Guide 157
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%,)
Inputs
None
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

Table of Contents