acquisition_settings

acquisition_settings#

method

RTO.acquisition_settings(sample_rate, duration, force_realtime=False)[source]#

Sets the scope acquisition settings.

The exact command this executes is: ‘ACQ:POIN:AUTO RES;:ACQ:SRAT {};:TIM:RANG {}’

Warning

The oscilloscope has a record length limit. This is system dependent! If you are getting cryptic errors, such as “Data out of range;ACQ:SRAT <some value>”, you might be exceeding the record length limit, calculated as SAMPLE_RATE x DURATION. The system enforces this limit to “prevent undersampling and ensure a sufficient resolution to acquire the correct waveform if the time scale is changed.” Check your specific system to find the record length limit.

See also: RTO User Manual Chapter 4.2 (page 147).

Parameters:
sample_ratefloat

Sample rate of device in Sa/s. Range is 2 to 20e+12 in increments of 1.

durationfloat

Length of acquisition in seconds.

force_realtimebool, optional

Defaults to False.