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

Method raw_send

lantz/drivers/legacy/serial.py:91–101  ·  view source on GitHub ↗

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

(self, data)

Source from the content-addressed store, hash-verified

89 self.log_debug('Created pyserial port {}', self.serial.port)
90
91 def raw_send(self, data):
92 """Send raw bytes to the instrument.
93
94 :param data: bytes to be sent to the instrument
95 :param data: bytes
96 """
97
98 try:
99 self.serial.write(data)
100 except serial.SerialTimeoutException as e:
101 raise LantzSerialTimeoutError(str(e))
102
103 def raw_recv(self, size):
104 """Receive raw bytes to the instrument.

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45

Tested by

no test coverage detected