Hi John, thanks for approving my request.
Ocean optics is providing library for their spectrometer for free.
It is called seabreeze
http://oceanoptics.com/product/seabreeze/ We are using basically the same library for our python scripts (we called 'IV SPectrum' for Current-voltage-spectrum acquisition).
It will be great if this thing can be integrated to PFE !!.
Some equivalent functions copied from seabreeze docs:
Function CL_Init
Open a connection to the CL interface
int probeDevices ()
int addRS232DeviceLocation (char *deviceTypeName, char *deviceBusPath, unsigned int baud)
int getNumberOfDeviceIDs ()
int getDeviceIDs (long *ids, unsigned long maxLength)
int openDevice (long id, int *errorCode)
Function CL_StartCL
Start the CL spectrum acquisition
int spectrometerGetUnformattedSpectrumLength (long deviceID, long featureID, int *errorCode)
int spectrometerGetUnformattedSpectrum (long deviceID, long featureID, int *errorCode, unsigned char *buffer, int bufferLength)
int spectrometerGetFormattedSpectrumLength (long deviceID, long featureID, int *errorCode)
int spectrometerGetFormattedSpectrum (long deviceID, long featureID, int *errorCode, double *buffer, int bufferLength)
int spectrometerGetWavelengths (long deviceID, long featureID, int *errorCode, double *wavelengths, int length)
Function CL_GetStatus
Returns true if acquisition in progress, false if not.
Function CL_StopCL
Stop or cancel the current spectrum acquisition
Function CL_GetSpectrum(npoints&, narray&())
Get an array of CL intensities from the current acquisition. Npoints& is the number of array elements returned in narray&().
Function CL_Close
Close the CL interface
void closeDevice (long id, int *errorCode)
-riko-