poolioregister

This module is part of the Python Pool libray. It defines the base classes for

Classes

PoolIORegister

Inheritance diagram of PoolIORegister
class PoolIORegister(**kwargs)[source]

Bases: PoolElement

get_value_attribute()[source]

Returns the value attribute object for this IO register

Return type:

SardanaAttribute

Returns:

the value attribute

on_change(evt_src, evt_type, evt_value)[source]
get_default_attribute()[source]
read_value()[source]

Reads the IO register value from hardware.

Return type:

SardanaValue

Returns:

a SardanaValue containing the IO register value

put_value(value, propagate=1)[source]

Sets a value.

Parameters:
  • value (SardanaValue) – the new value

  • propagate (int) – 0 for not propagating, 1 to propagate, 2 propagate with priority

Return type:

Value

get_value(cache=True, propagate=1)[source]
set_value(value, timestamp=None)[source]
set_write_value(w_value, timestamp=None, propagate=1)[source]

Sets a new write value for the IO registere

Parameters:
  • w_value (float) – the new write value for IO register

  • propagate (int) – 0 for not propagating, 1 to propagate, 2 propagate with priority

Return type:

None

property value

ioregister value

write_register(value, timestamp=None)[source]