Getowbinfo - JDS Uniphase SWS15100 User Manual

Swept wavelength systems
Table of Contents

Advertisement

Function
Description
Output
None
Return Value
When there is no error, the function returns the number of active channels
detected and updates the channel list array.
When there is an error, the function returns an error number.

getOWBInfo

Function
Description
Purpose
The getOWBInfo function retrieves the factory information pertaining to a
physical channel.
C prototype
int getOWBInfo( unsigned short chID,
short *bPresent, char *acID, char *acSN,
char *acREV, char *acDESC );
VB prototype
Declare Function getOWBInfo Lib "SWS15100"
(ByVal chID%, ByRef bPresent%, ByVal acID$, ByVal acSN$,
ByVal acREV$, ByVal acDESC$) As Long
Input
unsigned short chID:
This is the channel ID that the user selects to query for information. To retrieve
the information related to the control module, the channel ID must be 0.
Output
short *bPresent:
When bPresent is 1, then channel chID is present. When bPresent is zero, the
channel hardware does not exist.
char *acID:
This is a string of size MAX_ID_LEN (9) that contains the module identification.
char *acSN:
This is a string of size MAX_SN_LEN (17) that contains the serial number.
char *acREV:
This is a string of size MAX_REV_LEN (9) that contains the revision number.
char *acDESC:
This is a string of size MAX_DESC_LEN (41) that contains the description.
Constants MAX_ID_LEN, MAX_SN_LEN, MAX_REV_LEN, and
MAX_DESC_LEN are defined in the SWS15100.H file.
Return Value
When all required information has been successfully retrieved, the function
returns a zero.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Programming Guide – 155

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents