|
|
|
|
|
Device Server |
This Python Device Server will allow to declare dynamic attributes which values will depend on a given time-dependent formula:
Square=0.5+square(t) #(t = seconds since the device started) NoisySinus=2+1.5*sin(3*t)-0.5*random() SomeNumbers=DevVarLongArray([1000.*i for i in range(1,10)])
Attributes are DevDouble by default, but any Tango type or python expression can be used for declaration.
Format is specified at tango-controls.org
Signals that can be easily generated with amplitude between 0.0 and 1.0 are:
rampt(t), sin(t), cos(t), exp(t), triangle(t), square(t,duty), random()
The MaxValue/MinValue property for each Attribute will determine the State of the Device only if the property DynamicStates is not defined.
If defined, DynamicStates will use this format:
FAULT=2*square(0.9,60) ALARM=NoisySinus ON=1
This device inherits from PyTango_utils.dynamic.DynamicDS Class
TANGO is an open source project hosted by :
|
Core and Tools :
CVS repository on
tango-cs project
Device Servers : CVS repository on tango-ds project |