|
| 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.
|
| |
| int | openMockSpectrometer (uint pixels) |
| |
| 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.
|
| |
|
| static Driver | getInstance () |
| | Get a handle to the Driver Singleton. Idempotent (can be called repeatedly with no side-effects).
|
| |
◆ Driver()
| WasatchNET.Driver.Driver |
( |
| ) |
|
|
inlineprivate |
◆ ~Driver()
| WasatchNET.Driver.~Driver |
( |
| ) |
|
|
inlineprivate |
◆ attemptReset()
| void WasatchNET.Driver.attemptReset |
( |
object |
sender | ) |
|
|
inlineprivate |
◆ CheckLibrary()
| static bool WasatchNET.Driver.CheckLibrary |
( |
string |
fileName | ) |
|
|
inlinestaticprivate |
◆ closeAllSpectrometers()
| void WasatchNET.Driver.closeAllSpectrometers |
( |
| ) |
|
|
inline |
Automatically called as part of application shutdown (can be called manually).
Implements WasatchNET.IDriver.
◆ getInstance()
| static Driver WasatchNET.Driver.getInstance |
( |
| ) |
|
|
inlinestatic |
Get a handle to the Driver Singleton. Idempotent (can be called repeatedly with no side-effects).
- Returns
- reference to the Driver Singleton
◆ getMultiChannelWrapper()
Gets a custom Wrapper object provided to automate multi-channel operations.
- Returns
- a MultiChannelWrapper
Implements WasatchNET.IDriver.
◆ getNumberOfSpectrometers()
| int WasatchNET.Driver.getNumberOfSpectrometers |
( |
| ) |
|
|
inline |
How many Wasatch USB spectrometers were found.
- Returns
- number of enumerated Wasatch spectrometers
Implements WasatchNET.IDriver.
◆ getSpectrometer()
Obtains a reference to the specified spectrometer, performing any prelimary "open" / instantiation steps required to leave the spectrometer fully ready for use.
- Parameters
-
| index | zero-indexed (should be less than the value returned by openAllSpectrometers() / getNumberOfSpectrometers()) |
Spectrometers are deterministically ordered by (model, serialNumber) for repeatability.
- Returns
- a reference to the requested Spectrometer object, or null on error
Implements WasatchNET.IDriver.
◆ LoadLibrary()
| static IntPtr WasatchNET.Driver.LoadLibrary |
( |
string |
lpFileName | ) |
|
|
private |
◆ logDevice()
| void WasatchNET.Driver.logDevice |
( |
UsbRegistry |
usbRegistry | ) |
|
|
inlineprivate |
◆ logNameValuePairs()
| void WasatchNET.Driver.logNameValuePairs |
( |
string[] |
pairs, |
|
|
string |
prefix = " " |
|
) |
| |
|
inlineprivate |
◆ OnUsbError()
| void WasatchNET.Driver.OnUsbError |
( |
object |
sender, |
|
|
UsbError |
e |
|
) |
| |
|
inlineprivate |
◆ openAllSpectrometers()
| int WasatchNET.Driver.openAllSpectrometers |
( |
| ) |
|
|
inline |
Iterate over all discoverable Wasatch Photonics USB spectrometers, and return the number found. Individual spectrometers can then be accessed via the getSpectrometer(index) call.
If called multiple times during an application session WITHOUT calling closeAllSpectrometers() in between, will only add/open "new" spectrometers which have been "hotplugged" since the previous call.
It is unclear how reliable this method will be on subsequent calls if a previously-opened spectrometer has been power-cycled or otherwise reset, but not formally "closed" via Spectrometer.close() or Driver.closeAllSpectrometers().
- Returns
- number of Wasatch Photonics USB spectrometers found
Implements WasatchNET.IDriver.
◆ openMockSpectrometer()
| int WasatchNET.Driver.openMockSpectrometer |
( |
uint |
pixels | ) |
|
|
inline |
◆ instance
◆ MAX_RESETS
| const int WasatchNET.Driver.MAX_RESETS = 3 |
|
staticprivate |
◆ opened
| bool WasatchNET.Driver.opened = false |
|
private |
◆ resetCount
| int WasatchNET.Driver.resetCount = 0 |
|
private |
◆ spectrometers
◆ suppressErrors
| bool WasatchNET.Driver.suppressErrors = false |
|
private |
◆ uptime
◆ logger
◆ version
| string WasatchNET.Driver.version |
|
get |
The documentation for this class was generated from the following file: