|
Wasatch.NET 2.4.14
.NET application driver for Wasatch Photonics spectrometers
|
Singleton providing access to individual Spectrometer instances, while providing high-level support infrastructure like a master version string, reusable logger etc. More...
Public Member Functions | |
| void | closeAllSpectrometers () |
| Automatically called as part of application shutdown (can be called manually). | |
| MultiChannelWrapper | getMultiChannelWrapper () |
| Gets a custom Wrapper object provided to automate multi-channel operations. | |
| int | getNumberOfSpectrometers () |
| How many Wasatch USB spectrometers were found. | |
| Spectrometer | getSpectrometer (int index) |
| Obtains a reference to the specified spectrometer, performing any prelimary "open" / instantiation steps required to leave the spectrometer fully ready for use. | |
| int | openAllSpectrometers () |
| Iterate over all discoverable Wasatch Photonics USB spectrometers, and return the number found. Individual spectrometers can then be accessed via the getSpectrometer(index) call. | |
Properties | |
| Logger | logger [get] |
| string | version [get] |
Singleton providing access to individual Spectrometer instances, while providing high-level support infrastructure like a master version string, reusable logger etc.
In defiance of Microsoft convention, there are no Hungarian prefixes, and camelCase is used throughout. Sorry.
| void WasatchNET.IDriver.closeAllSpectrometers | ( | ) |
Automatically called as part of application shutdown (can be called manually).
Implemented in WasatchNET.Driver.
| MultiChannelWrapper WasatchNET.IDriver.getMultiChannelWrapper | ( | ) |
Gets a custom Wrapper object provided to automate multi-channel operations.
Implemented in WasatchNET.Driver.
| int WasatchNET.IDriver.getNumberOfSpectrometers | ( | ) |
How many Wasatch USB spectrometers were found.
Implemented in WasatchNET.Driver.
| Spectrometer WasatchNET.IDriver.getSpectrometer | ( | int | index | ) |
Obtains a reference to the specified spectrometer, performing any prelimary "open" / instantiation steps required to leave the spectrometer fully ready for use.
| index | zero-indexed (should be less than the value returned by openAllSpectrometers() / getNumberOfSpectrometers()) |
Spectrometers are deterministically ordered by (model, serialNumber) for repeatability.
Implemented in WasatchNET.Driver.
| int WasatchNET.IDriver.openAllSpectrometers | ( | ) |
Iterate over all discoverable Wasatch Photonics USB spectrometers, and return the number found. Individual spectrometers can then be accessed via the getSpectrometer(index) call.
The intent is that this method will only be called once per application session, at startup, and that all spectrometers will be opened and initialized once and then continue operating throughout the application lifetime.
However, long-running (process monitoring) applications may find that individual spectrometers may need to be power-cycled or re-enumerated during an application session, and the customer may not wish to call closeAllSpectrometers() to halt all spectrometer activity while resetting one device. Therefore, openAllSpectrometers will attempt to "quietly" (non-destructively) re-open spectrometers which were last seen to be in a "working" state (successfully retrieving spectra), and only forcibly re-initialize (to default values) spectrometers who were last seen to fail on an attempt to read spectra.
Implemented in WasatchNET.Driver.
|
get |
Implemented in WasatchNET.Driver.
|
get |
Implemented in WasatchNET.Driver.