digitize module¶
Digitize¶
module with the function that takes care of the digitization of the pulse
-
digitize.digitize(pulse, t, nbits=8, amprange=[-1.0, 1], sampfreq=0.5, samples=256, do_threshold=False, threshold=50, pretriggersamples=64, noise=0.02)¶ Digitize the signal
- Args:
pulse (numpy.array): the input signal
t (numpy.array): the time axis
- Kwargs:
nbits (int): resolution of the digitizer [bit]
amprange (list): amplitude range of the digitizer [max,min] [V]
sampfreq (float): sampling frequency of the digitizer [GHz]
samples = number of samples to acquire
do_threshold (bool): activate trigger threshold effect
threshold (int): level of trigger threshold (starting from baseline value)
pretriggersamples (int): number of samples before the trigger
noise (float): noise level [mV]
- Returns:
- newpulse (numpy.array): digitized pulse