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)
| 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. |