ZeroDExpChannel
Classes
ZeroDExpChannel
- class ZeroDExpChannel(dclass, name)[source]
Bases:
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 – device name
- property zerod
- delete_device()[source]
Clean the device. Called during shutdown and every time the tango
Init
command is executed. Override when necessary but always call the method from your super class
- init_device()[source]
Initialize the device. Called during startup after
init()
and every time the tangoInit
command is executed. Override when necessary but always call the method from your super class
- always_executed_hook(self)[source]
Hook method.
Default method to implement an action necessary on a device before any command is executed. This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs
- Raises:
DevFailed – This method does not throw exception but a redefined method can.
- 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
- is_Value_allowed(req_type)
Generic is_allowed
- is_CurrentValue_allowed(req_type)
Generic is_allowed
- is_AccumulationType_allowed(req_type)
Generic is_allowed
- is_AccumulationBuffer_allowed(req_type)
Generic is_allowed
- is_TimeBuffer_allowed(req_type)
Generic is_allowed
ZeroDExpChannelClass
- class ZeroDExpChannelClass(name)[source]
Bases:
PoolExpChannelDeviceClass
- class_property_list = {}
Sardana device class properties definition
See also
- device_property_list = {'Axis': [tango._tango.CmdArgType.DevLong64, 'Axis in the controller', [0]], 'Ctrl_id': [tango._tango.CmdArgType.DevString, 'Controller ID', [0]], 'Force_HW_Read': [tango._tango.CmdArgType.DevBoolean, 'Force a hardware read of value even when in operation (motion/acquisition', False], 'Id': [tango._tango.CmdArgType.DevLong64, 'Internal ID', 0], 'Instrument_id': [tango._tango.CmdArgType.DevString, 'Instrument ID', [0]]}
Sardana device properties definition
See also
- cmd_list = {'Abort': [[tango._tango.CmdArgType.DevVoid, ''], [tango._tango.CmdArgType.DevVoid, '']], 'Release': [[tango._tango.CmdArgType.DevVoid, ''], [tango._tango.CmdArgType.DevVoid, '']], 'Restore': [[tango._tango.CmdArgType.DevVoid, ''], [tango._tango.CmdArgType.DevVoid, '']], 'Start': [[tango._tango.CmdArgType.DevVoid, ''], [tango._tango.CmdArgType.DevVoid, '']], 'Stop': [[tango._tango.CmdArgType.DevVoid, ''], [tango._tango.CmdArgType.DevVoid, '']]}
Sardana device command definition
See also
- attr_list = {'AccumulationBuffer': [[tango._tango.CmdArgType.DevDouble, tango._tango.AttrDataFormat.SPECTRUM, tango._tango.AttrWriteType.READ, 16384]], 'AccumulationType': [[tango._tango.CmdArgType.DevString, tango._tango.AttrDataFormat.SCALAR, tango._tango.AttrWriteType.READ_WRITE], {'Display level': tango._tango.DispLevel.EXPERT, 'Memorized': 'true_without_hard_applied', 'label': 'Accumulation Type'}], 'Instrument': [[tango._tango.CmdArgType.DevString, tango._tango.AttrDataFormat.SCALAR, tango._tango.AttrWriteType.READ_WRITE], {'Display level': tango._tango.DispLevel.EXPERT, 'label': 'Instrument'}], 'IntegrationTime': [[tango._tango.CmdArgType.DevDouble, tango._tango.AttrDataFormat.SCALAR, tango._tango.AttrWriteType.READ_WRITE]], 'SimulationMode': [[tango._tango.CmdArgType.DevBoolean, tango._tango.AttrDataFormat.SCALAR, tango._tango.AttrWriteType.READ_WRITE], {'label': 'Simulation mode'}], 'TimeBuffer': [[tango._tango.CmdArgType.DevDouble, tango._tango.AttrDataFormat.SPECTRUM, tango._tango.AttrWriteType.READ, 16384]]}
Sardana device attribute definition
See also
- standard_attr_list = {'Shape': [[tango._tango.CmdArgType.DevLong64, tango._tango.AttrDataFormat.SPECTRUM, tango._tango.AttrWriteType.READ, 2], {'description': 'Shape of the value. It is an array with \nat most 2 elements: X and Y dimensions. \n0-element array - scalar\n1-element array (X) - spectrum\n2-element array (X, Y) - image', 'label': 'Shape (X,Y)'}], 'Value': [[tango._tango.CmdArgType.DevVoid, tango._tango.AttrDataFormat.SCALAR, tango._tango.AttrWriteType.READ], {'abs_change': '1.0'}], 'ValueBuffer': [[tango._tango.CmdArgType.DevEncoded, tango._tango.AttrDataFormat.SCALAR, tango._tango.AttrWriteType.READ]]}