def write_memory(self, session, space, offset, data, width, extended=False):
        if width == 8:
            return self.out_8(session, space, offset, data, extended)
        elif width == 16:
            return self.out_16(session, space, offset, data, extended)
        elif width == 32:
            return self.out_32(session, space, offset, data, extended)

        raise ValueError('%s is not a valid size. Valid values are 8, 16 or 32' % width)
Write in an 8-bit, 16-bit, 32-bit, value to the specified memory space and offset.
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/VisaLibraryBase.write_memory