MCPcopy Create free account
hub / github.com/LabPy/lantz / raw_send

Method raw_send

lantz/drivers/legacy/usb.py:364–374  ·  view source on GitHub ↗

Send raw bytes to the instrument. :param data: bytes to be sent to the instrument :type data: bytes

(self, data)

Source from the content-addressed store, hash-verified

362 self.raw_send(data)
363
364 def raw_send(self, data):
365 """Send raw bytes to the instrument.
366
367 :param data: bytes to be sent to the instrument
368 :type data: bytes
369 """
370
371 try:
372 return self.usb_send_ep.write(data)
373 except usb.core.USBError as e:
374 raise InstrumentError(str(e))
375
376 def recv(self, size):
377 return self.raw_recv(size)

Callers 3

sendMethod · 0.95
sendMethod · 0.45
recvMethod · 0.45

Calls 2

InstrumentErrorClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected