ALBULA  4.0.1
 All Classes Namespaces Functions Variables Pages
dectris.albula.DEigerMonitor Class Reference

class DEigerMonitor provides access the Eiger monitor interface. More...

Public Member Functions

def DEigerMonitor
 Contruct DEigerMonitor that connects to host and port. More...
 
def version
 Get the API version of the monitor interface from the Eiger server. More...
 
def enabled
 Return True (False) if the monitor interface on the Eiger server is enabled (disabled) More...
 
def setEnabled
 Enable (disable) the monitor interface on the Eiger server by passing True (False) More...
 
def bufferSize
 Return the buffer size of the monitor interface on the Eiger server. More...
 
def setBufferSize
 Set the buffer size of the monitor interface on the Eiger server. More...
 
def monitor
 Get most recent image that is taken on the Eiger detector. More...
 
def monitorAll
 Get most recent image that is taken on the Eiger detector together with its series and image ID. More...
 
def next
 Get next image of the current image series that is taken on the Eiger detector. More...
 
def nextAll
 Get next image of the current image series that is taken on the Eiger detector together with its series and image ID. More...
 

Detailed Description

class DEigerMonitor provides access the Eiger monitor interface.

In order to used monitor Eiger its monitor interface must be enabled (see enabled(), setEnabled()). Images may be obtaine via the methods monitor() and next().

Constructor & Destructor Documentation

def dectris.albula.DEigerMonitor.DEigerMonitor (   host,
  port = 80 
)

Contruct DEigerMonitor that connects to host and port.

Parameters
hostString containing the host name or IP address of the Eiger server.
portInteger containing the port number of the Eiger server.

Member Function Documentation

def dectris.albula.DEigerMonitor.bufferSize ( )

Return the buffer size of the monitor interface on the Eiger server.

Getting images via next() necessitates buffer size > 0.

Returns
Integer
def dectris.albula.DEigerMonitor.enabled ( )

Return True (False) if the monitor interface on the Eiger server is enabled (disabled)

Returns
True or False
def dectris.albula.DEigerMonitor.monitor (   timeout = 0)

Get most recent image that is taken on the Eiger detector.

Raises DTimeoutException in case of timeout.

Parameters
timeouttimeout in ms
Returns
DImage
def dectris.albula.DEigerMonitor.monitorAll (   timeout = 0)

Get most recent image that is taken on the Eiger detector together with its series and image ID.

Raises DTimeoutException in case of timeout.

Parameters
timeouttimeout in ms
Returns
Tuple (DImage, Integer, Integer) containing the image, series ID and image ID
def dectris.albula.DEigerMonitor.next (   timeout = 0)

Get next image of the current image series that is taken on the Eiger detector.

Raises DTimeoutException in case of timeout. Getting images via next() necessitates buffer size > 0.

Parameters
timeouttimeout in ms
Returns
DImage
def dectris.albula.DEigerMonitor.nextAll (   timeout = 0)

Get next image of the current image series that is taken on the Eiger detector together with its series and image ID.

Raises DTimeoutException in case of timeout.

Parameters
timeouttimeout in ms
Returns
Tuple (DImage, Integer, Integer) containing the image, series ID and image ID
def dectris.albula.DEigerMonitor.setBufferSize (   bufferSize)

Set the buffer size of the monitor interface on the Eiger server.

Getting images via next() necessitates buffer size > 0.

Parameters
bufferSizeInteger
def dectris.albula.DEigerMonitor.setEnabled (   enabled)

Enable (disable) the monitor interface on the Eiger server by passing True (False)

Parameters
enabledTrue or False
def dectris.albula.DEigerMonitor.version ( )

Get the API version of the monitor interface from the Eiger server.

Returns
String