FSRSModule.Camera

class core.FSRSModule.Camera[source]

Base class for any camera device that is used to read a 3xN array of data for FSRS and TA. The module type is ‘input’, so that it can be used in place of any input device.

read()[source]

Returns a single measurement value.

Important

This function has to be overwritten by any derive input module to implement the device specific code.

readNframes(N, canQuit=None)[source]

Returns a 3xN array of data with columns ‘pumpOn / pumpOff’, ‘pumpOn’, ‘pumpOff’.

Important

This function has to be overwritten by any derived camera module to implement the device specific code.

Parameters:
  • N (int) – Number of frames to read.
  • canQuit (threading.Event()) – Pass along the theading event that may be used to stop acquisition or None if this is not desired.
Returns:

3xN array with measured data.