Unmap memory for low-level memory read and write operations
memunmap(obj) unmaps memory space previously mapped by the memmap function.
Create the VISA-VXI object vv associated with a VXI chassis with index 0, and an Agilent® E1432A digitizer with logical address 130.
vv = visa('agilent','VXI0::130::INSTR'); fopen(vv)
Map 16 bytes in the A16 address space.
Read the first and second instrument registers.
reg1 = mempeek(vv,0,'uint16'); reg2 = mempeek(vv,2,'uint16');
Use memunmap to unmap the memory, and disconnect vv from the instrument.