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

Method write

lantz/drivers/legacy/visalib.py:1543–1552  ·  view source on GitHub ↗

Writes data to device or interface synchronously. :param session: Unique logical identifier to a session. :param data: data to be written. :return: Number of bytes actually transferred.

(self, session, data)

Source from the content-addressed store, hash-verified

1541 return out_event_type.value, out_context
1542
1543 def write(self, session, data):
1544 """Writes data to device or interface synchronously.
1545
1546 :param session: Unique logical identifier to a session.
1547 :param data: data to be written.
1548 :return: Number of bytes actually transferred.
1549 """
1550 return_count = Types.UInt32()
1551 self.lib.viWrite(session, data, len(data), ct.byref(return_count))
1552 return return_count.value
1553
1554 def write_asynchronously(self, session, buffer):
1555 """Writes data to device or interface asynchronously.

Callers 2

raw_sendMethod · 0.45
raw_sendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected