Wasatch.NET 2.4.14
.NET application driver for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | List of all members
WasatchNET.SpectrometerUptime Class Reference

Tracks whether a given spectrometer's "last known state" was successful (working) or error.
More...

Public Member Functions

bool needsInitialization (string key)
 
void setError (string key)
 
void setSuccess (string key)
 
void setUnknown (string key)
 

Private Types

enum  LastKnownState { SUCCESS , ERROR }
 

Private Attributes

Dictionary< string, LastKnownStatelastKnownStates = new Dictionary<string, LastKnownState>()
 

Detailed Description

Tracks whether a given spectrometer's "last known state" was successful (working) or error.

Given that common spectrometer error states only involve an unresponsive FPGA (can't get spectra) while the microcontroller keeps working (can read detector temperature etc), the enum more literally means "last call to getSpectrum returned non-null".

<todo>

Member Enumeration Documentation

◆ LastKnownState

Enumerator
SUCCESS 
ERROR 

Member Function Documentation

◆ needsInitialization()

bool WasatchNET.SpectrometerUptime.needsInitialization ( string  key)
inline

◆ setError()

void WasatchNET.SpectrometerUptime.setError ( string  key)

◆ setSuccess()

void WasatchNET.SpectrometerUptime.setSuccess ( string  key)

◆ setUnknown()

void WasatchNET.SpectrometerUptime.setUnknown ( string  key)

Member Data Documentation

◆ lastKnownStates

Dictionary<string, LastKnownState> WasatchNET.SpectrometerUptime.lastKnownStates = new Dictionary<string, LastKnownState>()
private

The documentation for this class was generated from the following file: