|
Wasatch.VCPP 1.0.19
Visual C++ driver for Wasatch Photonics spectrometers
|
A proxy customer-facing class providing an object-oriented / STL-based interface to command and control an individual Spectrometer. More...
#include <WasatchVCPP.h>
Public Member Functions | |
| Spectrometer (int specIndex) | |
| instantiated by WasatchVCPP::Proxy::openAllSpectrometers | |
| bool | close () |
| release resources associated with this spectrometer More... | |
| bool | setIntegrationTimeMS (unsigned long ms) |
| set integration time More... | |
| bool | setLaserEnable (bool flag) |
| set laser firing state More... | |
| bool | setDetectorGain (float value) |
| bool | setLaserPowerPerc (float value) |
| bool | setLaserPowermW (float value) |
| bool | setDetectorGainOdd (float value) |
| bool | setDetectorOffset (int16_t value) |
| bool | setDetectorOffsetOdd (int16_t value) |
| bool | setDetectorTECEnable (bool flag) |
| bool | setDetectorTECSetpointDegC (int value) |
| bool | setHighGainMode (bool flag) |
| float | getDetectorTemperatureDegC () |
| long | getIntegrationTimeMS () |
| bool | getLaserEnable () |
| float | getDetectorGain () |
| float | getDetectorGainOdd () |
| int | getDetectorOffset () |
| int | getDetectorOffsetOdd () |
| bool | getDetectorTECEnable () |
| int | getDetectorTECSetpointDegC () |
| bool | getHighGainModeEnable () |
| int | sendControlMsg (uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint8_t *data, int len) |
| int | readControlMsg (uint8_t bRequest, uint16_t wIndex, uint8_t *data, int len) |
| bool | setMaxTimeoutMS (int maxTimeoutMS) |
| int | getMaxTimeoutMS () |
| bool | cancelOperation (bool blocking=false) |
| std::string | getFirmwareVersion () |
| std::string | getFPGAVersion () |
| std::vector< double > | getSpectrum () |
| Retrieve one spectrum from the spectrometer. More... | |
| std::vector< uint8_t > | getEEPROMPage (int page) |
| std::string | getEEPROMFieldName (int index) |
| std::vector< float > | getWavecalCoeffs () |
| convenience accessor | |
Public Attributes | |
| int | specIndex |
| index of this spectrometer | |
| int | pixels |
| number of pixels | |
| std::string | model |
| model name | |
| std::string | serialNumber |
| serial number | |
| std::map< std::string, std::string > | eepromFields |
| a dictionary of EEPROM name-value pairs rendered as strings | |
| std::vector< double > | wavelengths |
| expanded wavecal in nm | |
| std::vector< double > | wavenumbers |
| expanded wavecal in 1/cm (Raman-only) | |
| float | excitationNM |
| configured laser excitation wavelength (Raman-only) | |
A proxy customer-facing class providing an object-oriented / STL-based interface to command and control an individual Spectrometer.
By default, methods returning a boolean report 'true' on success and 'false' on error unless specified otherwise.
|
inline |
|
inline |
release resources associated with this spectrometer
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve one spectrum from the spectrometer.
Sends an ACQUIRE command, then enters BLOCKING read on bulk endpoint. Demarshalls retreived little-endian pixel values. Applies minimal post-processing (see WasatchVCPP::Spectrometer::getSpectrum for details).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
set integration time
| ms | (Input) time in milliseconds |
|
inline |
set laser firing state
| flag | (Input) desired state (true for firing, false for off) |
|
inline |