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

Method raw_send

lantz/drivers/legacy/visa.py:85–95  ·  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

83 self.log_debug('Created Instrument {}', self.resource_name)
84
85 def raw_send(self, data):
86 """Send raw bytes to the instrument.
87
88 :param data: bytes to be sent to the instrument
89 :param data: bytes
90 """
91
92 try:
93 self.resource.write_raw(data)
94 except Exception as e:
95 raise Exception(str(e))
96
97 def initialize(self):
98 """Open port

Callers

nothing calls this directly

Calls 1

write_rawMethod · 0.80

Tested by

no test coverage detected