OneDExpChannel

Classes

OneDExpChannel

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

Bases: PoolTimerableDevice

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

get_oned()[source]
set_oned(oned)[source]
property oned
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 tango Init command is executed. Override when necessary but always call the method from your super class

on_oned_changed(event_source, event_type, event_value)[source]
always_executed_hook(self: tango._tango.Device_6Impl) → None[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

initialize_dynamic_attributes()[source]

Initializes this device dynamic attributes

read_Value(attr)[source]
is_Value_allowed(req_type)[source]
read_DataSource(attr)[source]
Start()[source]

OneDExpChannelClass

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

Bases: PoolTimerableDeviceClass

class_property_list = {}

Sardana device class properties definition

device_property_list = {'Axis': [CmdArgType.DevLong64, 'Axis in the controller', [0]], 'Ctrl_id': [CmdArgType.DevString, 'Controller ID', [0]], 'Force_HW_Read': [CmdArgType.DevBoolean, 'Force a hardware read of value even when in operation (motion/acquisition', False], 'Id': [CmdArgType.DevLong64, 'Internal ID', 0], 'Instrument_id': [CmdArgType.DevString, 'Instrument ID', [0]]}

Sardana device properties definition

cmd_list = {'Abort': [[CmdArgType.DevVoid, ''], [CmdArgType.DevVoid, '']], 'Release': [[CmdArgType.DevVoid, ''], [CmdArgType.DevVoid, '']], 'Restore': [[CmdArgType.DevVoid, ''], [CmdArgType.DevVoid, '']], 'Start': [[CmdArgType.DevVoid, ''], [CmdArgType.DevVoid, '']], 'Stop': [[CmdArgType.DevVoid, ''], [CmdArgType.DevVoid, '']]}

Sardana device command definition

attr_list = {'DataSource': [[CmdArgType.DevString, AttrDataFormat.SCALAR, AttrWriteType.READ]], 'Instrument': [[CmdArgType.DevString, AttrDataFormat.SCALAR, AttrWriteType.READ_WRITE], {'Display level': DispLevel.EXPERT, 'label': 'Instrument'}], 'IntegrationTime': [[CmdArgType.DevDouble, AttrDataFormat.SCALAR, AttrWriteType.READ_WRITE]], 'SimulationMode': [[CmdArgType.DevBoolean, AttrDataFormat.SCALAR, AttrWriteType.READ_WRITE], {'label': 'Simulation mode'}], 'Timer': [[CmdArgType.DevString, AttrDataFormat.SCALAR, AttrWriteType.READ_WRITE], {'Memorized': 'true_without_hard_applied'}]}

Sardana device attribute definition

standard_attr_list = {'Shape': [[CmdArgType.DevLong64, AttrDataFormat.SPECTRUM, 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': [[CmdArgType.DevVoid, AttrDataFormat.SPECTRUM, AttrWriteType.READ, 16384], {'abs_change': '1.0'}], 'ValueBuffer': [[CmdArgType.DevEncoded, AttrDataFormat.SCALAR, AttrWriteType.READ]]}