Programming Guide – 129
Interface Descriptions
initSWS
Function Description
Purpose The initSWS function initializes the SWS DLL sub-system. This function must
be called before any other function is called.
C prototype int initSWS(unsigned short baseAddress,
unsigned short nominalSize,
char *Path);
VB prototype Declare Function initSWS Lib "SWS15100"
(ByVal baseAddress%, ByVal nominalSize%, ByVal Path$) As Long
Input unsigned short baseAddress:
This is the ISA base address of the OWB interface card. This address is
determined at system installation. The default baseAddress is hexadecimal
240.
unsigned short nominalSize:
This is the nominal number of points in a complete scan.
char *Path:
This is the path specifying the root directory.
Output No output.
Return Value When there is no error, the function returns 1.
When there is an error, the return value contains the error number.
The error numbers are defined in the file SWS15100.h, which is on the SWS
CD-ROM.
triggerTrace
Function Description
Purpose The triggerTrace function is used to trigger a new trace. Before this function is
called, call getTraceStatus to ensure that no data is being collected.
C prototype int triggerTrace( );
VB prototype Declare Function triggerTrace Lib "SWS15100" () As Long
Input None
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