Gettracestatus; Getchannelpolarization; Isdarkvoltagedone - JDS Uniphase SWS15100 User Manual

Swept wavelength systems
Table of Contents

Advertisement

getTraceStatus

Function
Description
Purpose
The getTraceStatus function is used to return the status of the trace.
C prototype
int getTraceStatus( );
VB prototype
Declare Function getTraceStatus Lib "SWS15100" () As Long
Input
None
Output
None
Return Value
When there is no error, the function returns the status.
The status is bit encoded as follows:
Bit 1(LSB): Card busy = 1, Card Idle=0
Bit 2
Bit 3
Bit 4 to15 : Undefined
When there is an error, the return value contains the negative error number.

getChannelPolarization

Function
Description
Purpose
The getChannelPolarization function retrieves the polarization of the trace for
the specified channel in cache memory. Note: This function returns the last
polarization for specified channel, the last time any data was collected for the
channel. To find the latest polarization, use getTracePolarization instead.
C prototype
int getChannelPolarization( unsigned short chID, short *polar );
VB prototype
Declare Function getChannelPolarization Lib "SWS15100" ( ByVal ChID%,
ByRef polar% ) As Long
Input
Unsigned short chID:
Channel ID for which polarization is sought.
Output
short *polar:
This is a set of integers defined as: { S0 = 0, S1 = 1, S2 = 2, S3 = 3, S4 = 4,
POLARIZATION_END_MARKER = 5 }.
Return Value
When there is no error, the function returns zero.
When there is an error, the return value contains the error number.

isDarkVoltageDone

Function
Description
Purpose
The isDarkVoltageDone function is used to check if a dark voltage
130 – Programming Guide
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
: Card Overflow=1, Card Normal =0
: A/D Active= 1, A/D Idle =0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents