Acquire

src.acquire.acquire(oscope: Rigol_DS1000Z, averages: int | None = None, mdepth: int | str | None = None, type: str | None = None)[source]

Send commands to control an oscilloscope’s acquisition behavior. All arguments are optional. averages only takes effect while the acquisition type is AVERages; when both are specified the type command is issued first.

Parameters:
  • averages (int) – :ACQuire:AVERages (a power of two, 2 to 1024).

  • mdepth (int, str) – :ACQuire:MDEPth (an integer point count or AUTO).

  • type (str) – :ACQuire:TYPE (NORM, AVER, PEAK, or HRES).

Returns:

A namedtuple with a field for each argument, queried back regardless of which were provided, plus the read-only srate (:ACQuire:SRATe?, the sample rate in samples per second).