parameters: (self, variable_id, value, task)
docstring: write values to the device
docstring_summary: write values to the device
docstring_tokens: write values to the device
function: def write_data(self, variable_id, value, task):
          """
          write values to the device
          """
          variable = self._variables[variable_id]
          if task.property_name != '':
              # write the freq property to VariableProperty use that for later read
              VariableProperty.objects.update_or_create_property(variable=variable, name=task.property_name.upper(),
                                                                 value=value, value_class='FLOAT64')
              return True
          if variable.visavariable.variable_type == 0:  # configuration
              # only write to configuration variables
              pass
          else:
              return False
function_tokens: def write_data ( self , variable_id , value , task ) : variable = self . _variables [ variable_id ] if task . property_name != '' : # write the freq property to VariableProperty use that for later read VariableProperty . objects . update_or_create_property ( variable = variable , name = task . property_name . upper ( ) , value = value , value_class = 'FLOAT64' ) return True if variable . visavariable . variable_type == 0 : # configuration # only write to configuration variables pass else : return False