FindChargeInterval: Find a charging interval of given current channel.

Description Usage Arguments Details Value

Description

Find a charging interval of given current channel.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
FindChargeInterval(abf, epoch = FindMemtestEpoch(abf, dac = dac, type =
  "step"), dac = GetWaveformEnabledDAC(abf),
  episode = FindStepEpisode(abf, epoch = epoch, dac = dac),
  current_channel = GetFirstCurrentChan(abf), peak_window = 3L,
  diff_window = 5L, dy = NULL)

FindDischargeInterval(abf, epoch = FindMemtestEpoch(abf, dac = dac, type
  = "step"), dac = GetWaveformEnabledDAC(abf),
  episode = FindStepEpisode(abf, epoch = epoch, dac = dac),
  current_channel = GetFirstCurrentChan(abf), peak_window = 3L,
  diff_window = 5L, dy = NULL)

Arguments

abf

an abf object.

epoch

epoch to locate the interval.

dac

DAC channel of waveform.

episode

an episode to locate the interval.

current_channel

current channel.

peak_window

a window to locate peak.

diff_window

a window to calculate slope.

dy

1st derivatives of current channel within the epoch.

Details

This function finds an interval of an episode that fits charging/discharging behaviour of an RC circuit. Since abf object records descrete data points, FindChargeInterval() may have numeric stability issues in some extreme cases. Increase peak_window and diff_window usually solves them. The default values of peak_window, diff_window are tested and should work most of the time. You can also provide a pre-calculated 1st derivative using argument dy. Please note that dy should only contains points within the epoch instead of a whole sweep.

Value

an interval.


Crystal-YWu/abftools documentation built on May 10, 2019, 8:22 a.m.