Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

memunmap

Unmap memory for low-level memory read and write operations

Syntax

memunmap(obj)

Arguments

obj

A VISA-VXI or VISA-GPIB-VXI object.

Description

memunmap(obj) unmaps memory space previously mapped by the memmap function.

Examples

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.

memmap(vv,'A16',0,16)

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.

memunmap(vv)
fclose(vv)

More About

collapse all

Tips

When the memory space is unmapped, the MappedMemorySize property is set to 0 and the MappedMemoryBase property is set to 0H.

Introduced before R2006a

Was this topic helpful?