def METHOD_NAME(self, new_value):
    if int(self.scaleFactor) != 1:
        new_value = new_value * self.scaleFactor
    if self.varCallback is not None:
        self.varCallback(new_value)
    if self.isFloat:
        self.message_port_pub(pmt.intern("value"), pmt.cons(pmt.intern(self.outputmsgname),
                                                            pmt.from_double(new_value)))
    else:
        self.message_port_pub(pmt.intern("value"), pmt.cons(pmt.intern(self.outputmsgname),
                                                            pmt.from_long(new_value)))