| Instrument Control Toolbox | ![]() |
High-level memory read from VXI register
Syntax
out = memread(obj) out = memread(obj,offset) out = memread(obj,offset,'precision') out = memread(obj,offset,'precision','adrspace') out = memread(obj,offset,'precision','adrspace',size)
Arguments
Description
out = memread(obj)
reads a uint8 value from the A16 address space with an offset of 0 for the object obj.
out = memread(obj,offset)
reads a uint8 value from the A16 address space with an offset specified by offset. You must specify offset as a decimal value.
out = memread(obj,offset,' reads the number of bits specified by precision')
precision from the A16 address space. precision can be uint8, uint16, or uint32, which instructs memread to read 8-, 16-, or 32-bit values, respectively. precision can also be single, which instructs memread to read single-precision values.
out = memread(obj,offset,' reads the specified number of bits from the address space specified by precision','adrspace')
adrspace. adrspace can be A16, A24, or A32. The MemorySpace property indicates which VXI address spaces are used by the instrument.
out = memread(obj,offset,' reads a block of data with a size specified by precision','adrspace',size)
size.
Remarks
Before you can read data from the VXI register, obj must be connected to the instrument with the fopen function. A connected instrument object has a Status property value of open. An error is returned if you attempt to read memory while obj is not connected to the instrument.
Example
Create the VISA-VXI object vv associated with a VXI chassis with index 0, and an Agilent E1432A digitizer with logical address 130.
Perform a high-level read of the first instrument register.
Perform a high-level read of the next three instrument registers.
Disconnect vv from the instrument.
Refer to Example: Using High-Level Memory Functions for a description of the first four registers of the E1432A digitizer.
Functions
Properties
MemoryIncrement, MemorySpace, Status
| mempoke | memunmap | ![]() |