exopy.tasks.tasks.instr_task module

Base class for tasks needing to access an instrument.

class exopy.tasks.tasks.instr_task.InstrumentTask(**kwargs)[source]

Bases: exopy.tasks.tasks.base_tasks.SimpleTask

Base class for all tasks calling instruments.

selected_instrument

Selected instrument as (profile, driver, collection, settings) tuple

driver

Instance of instrument driver.

check(*args, **kwargs)[source]

Chech that the provided informations allows to establish the connection to the instrument.

prepare()[source]

Always start the driver.

start_driver()[source]

Create an instance of the instrument driver and connect it.

test_driver()[source]

Safe temporary access to the driver to run some checks.

Yield either a fully initialized driver or None.