Acquire

src.acquire.acquire(oscope, averages: int | None = None, memdepth: 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).

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

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

Returns:

A namedtuple with fields corresponding to the named arguments of this function. All fields are queried regardless of which arguments were initially provided. The srate field is additionally provided as a result of the query :ACQuire:SRATe? (the sample rate in samples per second).