def write(self, data):
    'Send raw bytes to the instrument.\n\n        :param data: bytes to be sent to the instrument\n        :type data: bytes\n        '
    (begin, end, size) = (0, 0, len(data))
    bytes_sent = 0
    raw_write = super(USBTMC, self).write
    while ((end == 0) or (end < size)):
        (begin, end) = (end, (begin + self.RECV_CHUNK))
        self._btag = ((self._btag % 255) + 1)
        eom = (end >= size)
        data = BulkOutMessage.build_array(self._btag, eom, data[begin:end])
        bytes_sent += raw_write(data)
    return size
Send raw bytes to the instrument.

:param data: bytes to be sent to the instrument
:type data: bytes
def write(self, data):
    'Send raw bytes to the instrument.\n\n        :param data: bytes to be sent to the instrument\n        :type data: bytes\n        '
    (begin, end, size) = (0, 0, len(data))
    bytes_sent = 0
    raw_write = super(USBTMC, self).write
    while ((end == 0) or (end < size)):
        (begin, end) = (end, (begin + self.RECV_CHUNK))
        self._btag = ((self._btag % 255) + 1)
        eom = (end >= size)
        data = BulkOutMessage.build_array(self._btag, eom, data[begin:end])
        bytes_sent += raw_write(data)
    return size