PseudoCounter

Classes

PseudoCounter

Inheritance diagram of PseudoCounter
class PseudoCounter(dclass, name)[source]

Bases: sardana.tango.pool.PoolDevice.PoolExpChannelDevice

init(name)[source]

initialize the device once in the object lifetime. Override when necessary but always call the method from your super class

Parameters:name (str) – device name
get_pseudo_counter()[source]
set_pseudo_counter(pseudo_counter)[source]
pseudo_counter
delete_device
init_device
on_pseudo_counter_changed(event_source, event_type, event_value)[source]
always_executed_hook()[source]
read_attr_hardware(data)[source]
get_dynamic_attributes()[source]

Override of PoolDevice.get_dynamic_attributes. Returns the standard dynamic and fully dynamic attributes for this device. The return is a tuple of two dictionaries:

  • standard attributes: caseless dictionary with key being the attribute name and value is a tuple of attribute name(str), tango information, attribute information
  • dynamic attributes: caseless dictionary with key being the attribute name and value is a tuple of attribute name(str), tango information, attribute information
tango information
seq< CmdArgType, AttrDataFormat, AttrWriteType >
attribute information
attribute information as returned by the sardana controller
Returns:the standard dynamic and fully dynamic attributes
Return type:seq< CaselessDict, CaselessDict>
initialize_dynamic_attributes()[source]

Initializes this device dynamic attributes

read_Value(attr)[source]
is_Value_allowed(req_type)

Generic is_allowed

CalcPseudo(physical_values)[source]

Returns the pseudo counter value for the given physical counters

CalcAllPseudo(physical_values)[source]

Returns the pseudo counter values for the given physical counters

PseudoCounterClass

Inheritance diagram of PseudoCounterClass
class PseudoCounterClass(name)[source]

Bases: sardana.tango.pool.PoolDevice.PoolExpChannelDeviceClass

class_property_list = {}
device_property_list = {'Axis': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Axis in the controller', [0]], 'Ctrl_id': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Controller ID', [0]], 'Elements': [<_mock._Mock object at 0x7f9ba9cbae50>, 'elements used by the pseudo', []], 'Force_HW_Read': [<_mock._Mock object at 0x7f9ba9cba8d0>, 'Force a hardware read of value even when in operation (motion/acquisition', False], 'Id': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Internal ID', 0], 'Instrument_id': [<_mock._Mock object at 0x7f9ba9cbaa50>, 'Controller ID', [0]]}
cmd_list = {'Abort': [[<_mock._Mock object at 0x7f9ba9cbaf50>, ''], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']], 'CalcAllPseudo': [[<_mock._Mock object at 0x7f9ba9cbac90>, 'physical positions'], [<_mock._Mock object at 0x7f9ba9cbac90>, 'pseudo counter values']], 'CalcPseudo': [[<_mock._Mock object at 0x7f9ba9cbac90>, 'physical values'], [<_mock._Mock object at 0x7f9ba9cba910>, 'pseudo counter']], 'Restore': [[<_mock._Mock object at 0x7f9ba9cbaf50>, ''], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']], 'Stop': [[<_mock._Mock object at 0x7f9ba9cbaf50>, ''], [<_mock._Mock object at 0x7f9ba9cbaf50>, '']]}
standard_attr_list = {'Data': [[<_mock._Mock object at 0x7f9ba9cbaad0>, <_mock._Mock object at 0x7f9ba9cbb110>, <_mock._Mock object at 0x7f9ba9cbb050>]], 'Value': [[<_mock._Mock object at 0x7f9ba9cba910>, <_mock._Mock object at 0x7f9ba9cbb110>, <_mock._Mock object at 0x7f9ba9cbb050>]]}