photons.plugins.tia_gain module

Plugin to determine the gain of a transimpedance amplifier.

Setup

  1. A Keithley 6430 sub-femto SourceMeter produces a current.

  2. The current (from the IN/OUT HIGH port of the pre-amp) is the input signal to transimpedance amplifier.

  3. The output of the transimpedance amplifier is connected to a digital multimeter.

class photons.plugins.tia_gain.TIAGain(parent, **kwargs)[source]

Bases: BasePlugin

Plugin to determine the gain of a transimpedance amplifier.

Parameters:
  • parent (MainWindow) – The main window.

  • **kwargs – All keyword arguments are passed to super().

on_tia_changed(text)[source]

Slot for the TIA changed.

Return type:

None

on_worker_abort()[source]

Abort the worker thread.

Return type:

None

on_worker_start()[source]

Start acquiring data in the worker thread.

Return type:

None

on_worker_finished()[source]

Called when the worker thread finishes.

Return type:

None

class photons.plugins.tia_gain.TIAGainWorker(parent)[source]

Bases: Worker

Process an expensive or blocking operation in a thread that is separate from the main thread.

You can access to the attributes of the Worker as though they are attributes of the Thread.

The *args and **kwargs parameters are passed to the constructor of the Worker when the start() method is called.

Example

See SleepWorker for an example of a Worker.

process()[source]

The expensive or blocking operation to process.

Attention

You must override this method.