acquire

Contents

acquire#

method

RTO.acquire(timeout: int = -1, run: str = 'single') None[source]#

Asynchronous command that starts acquisition.

Parameters:
timeoutint

The timeout to use for the given acquisition in milliseconds. The default timeout is used if no timeout is given. The timeout is not permanently set; once the acquisition is complete, the original timeout is kept for any other query/write command. For an infinite timeout, pass in None. If not specified, default timeout is the default for acquire().

runstr

Specifies the type of run. Allowable values are continuous (starts the continuous acquisition), single (starts a defined number of acquisition cycles as set by acquisition_settings()), or stop (stops a running acquisition). Default is single.

Raises:
ValueError

If the run type is not one of the allowed values.