navigate.model.waveforms.single_pulse
- navigate.model.waveforms.single_pulse(sample_rate=100000, sweep_time=0.4, delay=10, pulse_width=1, amplitude=1, offset=0)
Returns a numpy array with a single pulse Used for creating TTL pulses out of analog outputs and laser intensity pulses.
- Parameters:
sample_rate (Integer) – Unit - Hz
sweep_time (Float) – Unit - Seconds
delay (Float) – Unit - Percent
pulse_width (Float) – Unit - Percent
amplitude (Float) – Unit - Volts
offset (Float) – Unit - Volts
- Returns:
waveform
- Return type:
np.array
Examples
>>> typical_TTL_pulse = single_pulse(sample_rate, sweep_time, 10, 1, 1, 0)