                             new tangojs.tango.AttributeAlarm({
                               max_warning: '50'
                               max_alarm: '70'
-                            }))
+                            }),
+                            tangojs.tango.AttributeDataType.ATT_DOUBLE)
     string: createAttribute(undefined,
                             'string'
                             undefined,

 ###
createCommand = (handler,
                 name,
                 level) ->
  get_info: -> new tangojs.struct.CommandInfo
    cmd_name: name
    cmd_tag: 0
    in_type: undefined
    in_type_desc: 'command input'
    level: level
    out_type: undefined
    out_type_desc: 'command output'
  inout: (devData) -> new tangojs.struct.DeviceData(handler(devData.value))


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