navigate.model.waveforms.remote_focus_ramp
- navigate.model.waveforms.remote_focus_ramp(sample_rate=100000, exposure_time=0.2, sweep_time=0.24, remote_focus_delay=0.005, camera_delay=0.001, fall=0.05, amplitude=1, offset=0)
Returns a numpy array with a sawtooth ramp - typically used for remote focusing.
The waveform starts at offset and stays there for the delay period, then rises linearly to 2x amplitude (amplitude here refers to 1/2 peak-to-peak) and drops back down to the offset voltage during the fall period.
Switching from a left to right remote focus ramp is possible by exchanging the rise and fall periods.
- Parameters:
sample_rate (Integer) – Unit - Hz
exposure_time (Float) – Unit - Seconds
sweep_time (Float) – Unit - Seconds
remote_focus_delay (Float) – Unit - seconds
camera_delay (Float) – Unit - seconds
fall (Float) – Unit - seconds
amplitude (Float) – Unit - Volts
offset (Float) – Unit - Volts
- Returns:
waveform
- Return type:
np.array
Examples
>>> etl_ramp = tunable_lens_ramp(sample_rate, exposure_time, sweep_time, etl_delay, camera_delay, fall, amplitude, offset)