Low-level memory read from VXI register
out = mempeek(obj,offset)
out = mempeek(obj,offset,'
A VISA-VXI or VISA-GPIB-VXI object.
The offset in the mapped memory space from which the data is read.
The number of bits to read from the memory address.
An array containing the returned value.
out = mempeek(obj,offset) reads
uint8 value from the mapped memory space specified
offset for the object
The value is returned to
out = mempeek(obj,offset,' reads
the number of bits specified by
from the mapped memory space specified by
mempeek to read 8-, 16-, or 32-bit
precision can also
single, which instructs
read single precision values.
Create the VISA-VXI object
with a VXI chassis with index 0, and an Agilent® E1432A
digitizer with logical address 130.
vv = visa('agilent','VXI0::130::INSTR'); fopen(vv)
memmap to map 16 bytes in the A16 address
Perform a low-level read of the first and second instrument registers.
reg1 = mempeek(vv,0,'uint16') reg1 = 53247 reg2 = mempeek(vv,2,'uint16') reg2 = 20993
Unmap the memory and disconnect
vv from the
Refer to Using High-Level Memory Functions for a description of the first four registers of the E1432A digitizer.
Before you can read from the VXI register,
be connected to the instrument with the
A connected interface object has a
open. An error is returned if you attempt
a read operation while
obj is not connected to
offset indicates the offset in the mapped
memory space from which the data is read. For example, if the mapped
memory space begins at 200H, the offset is 2, and the precision is
then the data is read from memory location 202H. If the precision
uint16, the data is read from 202H and 203H.
To increase speed,
not return error messages from the instrument.