pool

This module contains the main pool class

Functions

  • get_thread_pool()

Classes

Pool

Inheritance diagram of Pool
class Pool(full_name, name=None)[source]

Bases: PoolContainer, PoolObject, SardanaElementManager, SardanaIDManager

The central pool class.

Default_MotionLoop_StatesPerPosition = 10

Default value representing the number of state reads per position read during a motion loop

Default_MotionLoop_SleepTime = 0.01

Default value representing the sleep time for each motion loop

Default_AcqLoop_StatesPerValue = 10

Default value representing the number of state reads per value read during a motion loop

Default_AcqLoop_SleepTime = 0.01

Default value representing the sleep time for each acquisition loop

Default_DriftCorrection = True
init_local_logging()[source]
clear_remote_logging()[source]
init_remote_logging(host=None, port=None)[source]

Initializes remote logging.

Parameters:
  • host (Optional[str]) – host name [default: None, meaning use the machine host name as returned by socket.gethostname()].

  • port (Optional[int]) – port number [default: None, meaning use logging.handlers.DEFAULT_TCP_LOGGING_PORT

Return type:

None

serialize(*args, **kwargs)[source]
set_motion_loop_sleep_time(motion_loop_sleep_time)[source]
get_motion_loop_sleep_time()[source]
property motion_loop_sleep_time

motion sleep time (s)

set_motion_loop_states_per_position(motion_loop_states_per_position)[source]
get_motion_loop_states_per_position()[source]
property motion_loop_states_per_position

Number of State reads done before doing a position read in the motion loop

set_acq_loop_sleep_time(acq_loop_sleep_time)[source]
get_acq_loop_sleep_time()[source]
property acq_loop_sleep_time

acquisition sleep time (s)

set_acq_loop_states_per_value(acq_loop_states_per_value)[source]
get_acq_loop_states_per_value()[source]
property acq_loop_states_per_value

Number of State reads done before doing a value read in the acquisition loop

set_drift_correction(drift_correction)[source]
get_drift_correction()[source]
property drift_correction

drift correction

property monitor
property ctrl_manager
set_python_path(path)[source]
set_pool_path(path)[source]
get_pool_path()[source]
property pool_path
get_controller_libs()[source]
get_controller_lib_names()[source]
get_controller_class_names()[source]
get_controller_classes()[source]
get_controller_class_info(name)[source]
get_controller_classes_info(names)[source]
get_controller_libs_summary_info()[source]
get_controller_classes_summary_info()[source]
get_elements_str_info(obj_type=None)[source]
get_elements_info(obj_type=None)[source]
get_acquisition_elements_info()[source]
get_acquisition_elements_str_info()[source]
create_controller(**kwargs)[source]
create_element(**kwargs)[source]
create_motor_group(**kwargs)[source]
create_measurement_group(**kwargs)[source]
rename_element(old_name, new_name)[source]

Rename an object

Parameters:
  • old_name – old object name

  • new_name – new object name

delete_element(name)[source]
create_instrument(**kwargs)[source]
stop()[source]
abort()[source]
reload_controller_lib(lib_name)[source]
reload_controller_class(class_name)[source]
get_element_id_graph()[source]
get_moveable_id_graph()[source]
get_moveable_graph()[source]