TANGO
Device Server




TANGO Device Server
Device Description

PySignalSimulator Class

Revision: 1.4 - Author: srubio@cells.es # #

This Python Device Server will allow to declare dynamic attributes which values will depend on a given time-dependent formula:

Example:
  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)>0.<br>
ALARM=NoisySinus>3<br>
ON=1<br>

This device inherits from PyTango_utils.dynamic.DynamicDS Class





TANGO is an open source project hosted by :
Sourceforge logo small
Core and Tools : CVS repository on tango-cs project
Device Servers : CVS repository on tango-ds project