mahos.inst.pd.APDCounter#
- class mahos.inst.pd.APDCounter(name, conf, prefix=None)#
BufferedEdgeCounter for counting APD output pulses.
- Parameters:
counter (str) – The device name for counter (like /Dev1/Ctr0).
source (str) – The pin name for counter source (like /Dev1/PFI0).
source_dir (bool) – (default: True) Source direction. True (False) for rising (falling) edge.
queue_size (int) – (default: 10000) Software buffer (queue) size.
corr_x_kcps (np.ndarray) – x-data of correction factor.
corr_y (np.ndarray) – y-data of correction factor.
dark_cps (float) – (default 0.0) Module dark count rate.
dead_time_ns (float) – (default 0.0) Module dead time in ns. If given, correction factor is calculated using this. And then corr_x_kcps and corr_y are ignored.
- __init__(name, conf, prefix=None)#
Methods
__init__
(name, conf[, prefix])configure
(params[, label])Configure the instrument settings.
correct_cps
(cps)correction_factor
(cps)get
(key[, args, label])Get an instrument setting or measurement data.