                    writable,
                    min_value,
                    max_value,
-                   alarm
+                   alarm,
+                   data_type
                    ) ->
   _value = initial
   get_info: -> new tangojs.struct.AttributeInfo
     att_alarm: alarm
     data_format: data_format
-    data_type: undefined
+    data_type: data_type
     description: name
     display_unit: unit
     enum_labels: []

                            tangojs.tango.AttrWriteType.READ_WRITE,
                            undefined,
                            undefined,
                            null)
    sine_trend: (->
      name = 'sine_trend'
      format = 'scientific,setprecision(3)'

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