code: def write_translated(self, name, value, event=None):
          
          data = {'name': name}
          if value is not None:
              data['value'] = self._massage_write_value(value)
          if event is not None:
              data['event'] = self._massage_write_value(event);
          message = self.streamer.serialize_for_stream(data)
          bytes_written = self.write_bytes(message)
          assert bytes_written == len(message)
          return bytes_written
docs: Send a translated write request to the VI.