                              undefined,
                              undefined,
                              null,
-                             tangojs.tango.AttributeDataType.ATT_DOUBLE)
+                             tangojs.tango.AttributeDataType.ATT_DOUBLE.value)
       attr.get_value = ->
         value = Math.sin((new Date()).getTime()/1000.0)
         createDeviceAttributeStruct(name, format, value)

                              max_warning: '50'
                              max_alarm: '70'
                            }),
                            tangojs.tango.AttributeDataType.ATT_DOUBLE)
    string: createAttribute(undefined,
                            'string'
                            undefined,

                             undefined,
                             undefined,
                             null,
                             tangojs.tango.AttributeDataType.ATT_BOOL.value)
    spectrum: createAttribute(([1..10].map (_i) -> Math.random()),
                              'spectrum'
                              undefined,
