Using Viin And Viout - Agilent Technologies E2094S User Manual

For io libraries suite 15.5
Table of Contents

Advertisement

Agilent VISA User's Guide
Table 20 Summary of High-Level Memory Functions
viOut16
(
vi, space, offset,
val16)
;
viOut32
(
vi, space, offset,
val32)
;
viMoveIn8(vi, space, offset,
length, buf8)
;
viMoveIn16
(
vi, space, offset,
length, buf16)
;
viMoveIn32(vi, space, offset,
length, buf32)
;
viMoveOut8(vi, space, offset,
length, buf8)
;
(
viMoveOut16
vi, space, offset,
length, buf16)
;
viMoveOut32
(
vi, space, offset,
;
length, buf32)

Using viIn and viOut

When using the viIn and viOut high-level memory functions to
program to the device registers, all you need to specify is the session
identifier, address space, and the offset of the register. Memory mapping
is done for you. For example, in this function:
viIn32(vi, space, offset, val32);
vi is the session identifier and offset is used to indicate the offset of the
memory to be mapped. offset is relative to the location of this device's
memory in the given address space. The space parameter determines
which memory location to map the space. Valid space values are:
• VI_A16_SPACE - Maps in VXI/MXI A16 address space
• VI_A24_SPACE - Maps in VXI/MXI A24 address space
• VI_A32_SPACE - Maps in VXI/MXI A32 address space
Programming via GPIB and VXI
Writes 16 bits of data to the specified
offset.
Writes 32 bits of data to the specified
offset.
Moves an 8-bit block of data from the
specified offset to local memory.
Moves a 16-bit block of data from the
specified offset to local memory.
Moves a 32-bit block of data from the
specified offset to local memory.
Moves an 8-bit block of data from local
memory to the specified offset.
Moves a 16-bit block of data from local
memory to the specified offset.
Moves a 32-bit block of data from local
memory to the specified offset.
4
89

Advertisement

Table of Contents
loading

Table of Contents