balanced_diode#

This module contains functions for reading the current value from the balanced diode (Thorlabs PDB210A/M) using a national instruments data acquisition card.

image of the available balanced photodiode PDB210A/M from THORLABS

functions#

ppf_moke.balanced_diode.read_voltage(N=100)[source]#
returns the measured voltage using a national instruments measurement card

on Device 1 channel 0

Parameters

N (integer) – number of samples acquired, optional value

Returns

measurement – averaged measured voltage over N samples in V

Return type

float

stdfloat

standard deviation of the averaged N samples in V

Example

>>> data, std = read_voltage()
ppf_moke.balanced_diode.test()[source]#

prints a confirmation to the console if the module is properly loaded