(self, variable_id, value, task)
write values to the device
write values to the device
write values to the device
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
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