Wasatch.PY
Python application driver for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
wasatch.OceanDevice.OceanDevice Class Reference
Inheritance diagram for wasatch.OceanDevice.OceanDevice:
wasatch.InterfaceDevice.InterfaceDevice

Public Member Functions

 __init__ (self, device_id, message_queue=None, alert_queue=None)
 
 acquire_data (self)
 
 connect (self)
 Public Methods.
 
 scans_to_average (self, int value)
 
- Public Member Functions inherited from wasatch.InterfaceDevice.InterfaceDevice
 __init__ (self, device_id, message_queue=None, alert_queue=None)
 
 change_setting (self, setting, value=None)
 Request Handlers.
 
 check_alert (self, name)
 
 handle_cmd (self, cmd, arg=None, force=False)
 
 handle_request (self, request)
 
 handle_requests (self, requests)
 
 queue_message (self, setting, value)
 Outgoing Sideline Messages.
 

Public Attributes

bool connected = False
 
 device = None
 
int failure_count = 0
 
int session_reading_count = 0
 
 settings = SpectrometerSettings(self.device_id)
 
 spec = Spectrometer(self.device)
 
int sum_count = 0
 
list summed_spectra = None
 
bool take_one = False
 
- Public Attributes inherited from wasatch.InterfaceDevice.InterfaceDevice
 alert_queue = alert_queue
 
 device_id = device_id
 
 message_queue = message_queue
 
dict process_f = {}
 
int remaining_throwaways = 0
 

Protected Member Functions

 _init_process_funcs (self)
 Private Methods.
 
 _take_one_averaged_reading (self)
 
- Protected Member Functions inherited from wasatch.InterfaceDevice.InterfaceDevice
 _refresh_alerts (self)
 Incoming Sideline Messages.
 

Additional Inherited Members

- Protected Attributes inherited from wasatch.InterfaceDevice.InterfaceDevice
 _alerts = set()
 
dict _supported_message_queue_types
 

Detailed Description

This is our interface to Ocean Opitics Spectrometers.

Constructor & Destructor Documentation

◆ __init__()

wasatch.OceanDevice.OceanDevice.__init__ ( self,
device_id,
message_queue = None,
alert_queue = None )

Member Function Documentation

◆ _init_process_funcs()

wasatch.OceanDevice.OceanDevice._init_process_funcs ( self)
protected

Private Methods.

◆ _take_one_averaged_reading()

wasatch.OceanDevice.OceanDevice._take_one_averaged_reading ( self)
protected

◆ acquire_data()

wasatch.OceanDevice.OceanDevice.acquire_data ( self)

◆ connect()

wasatch.OceanDevice.OceanDevice.connect ( self)

Public Methods.

◆ scans_to_average()

wasatch.OceanDevice.OceanDevice.scans_to_average ( self,
int value )

Member Data Documentation

◆ connected

bool wasatch.OceanDevice.OceanDevice.connected = False

◆ device

wasatch.OceanDevice.OceanDevice.device = None

◆ failure_count

int wasatch.OceanDevice.OceanDevice.failure_count = 0

◆ session_reading_count

int wasatch.OceanDevice.OceanDevice.session_reading_count = 0

◆ settings

wasatch.OceanDevice.OceanDevice.settings = SpectrometerSettings(self.device_id)

◆ spec

wasatch.OceanDevice.OceanDevice.spec = Spectrometer(self.device)

◆ sum_count

int wasatch.OceanDevice.OceanDevice.sum_count = 0

◆ summed_spectra

wasatch.OceanDevice.OceanDevice.summed_spectra = None

◆ take_one

bool wasatch.OceanDevice.OceanDevice.take_one = False

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