High-level memory write to VXI register
A VISA-VXI or VISA-GPIB-VXI object.
The data written to the memory address.
Offset for the memory address space.
The number of bits to write to the memory address.
The memory address space.
memwrite(obj,data,offset,'precision') writes data with precision specified by precision. precision can be uint8, uint16, or uint32, which instructs memwrite to write data as 8-, 16-, or 32-bit values, respectively. precision can also be single, which instructs memwrite to write data as single-precision values.
memwrite(obj,data,offset,'precision','adrspace') writes data to the address space specified by adrspace. adrspace can be A16, A24, or A32. The MemorySpace property indicates which VXI address spaces are used by the instrument.
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)
Perform a high-level write to the fourth instrument register, which has an offset of 6.
Disconnect vv from the instrument.
Refer to Using High-Level Memory Functions for a description of the first four registers of the E1432A digitizer.