vallenae.io.TraDatabase.read_continuous_wave

TraDatabase.read_continuous_wave(channel, time_start=None, time_stop=None, *, time_axis=True, show_progress=True, raw=False)[source]

Read transient signal of specified channel to a single, continuous array.

The signal is exactly cropped to the given time range. Time gaps are filled with 0’s.

Parameters:
  • channel (int) – Channel number to read

  • time_start (Optional[float]) – Start reading at relative time (in seconds). Start at beginning if None

  • time_stop (Optional[float]) – Stop reading at relative time (in seconds). Read until end if None

  • time_axis (bool) – Create the correspondig time axis. Default: True

  • show_progress (bool) – Show progress bar. Default: True

  • raw (bool) – Return data as ADC values (int16). Default: False

Return type:

Union[Tuple[ndarray, ndarray], Tuple[ndarray, int]]

Returns:

If time_axis is True

  • Array with transient signal

  • Time axis

If time_axis is False

  • Array with transient signal

  • Samplerate