
Programming via GPIB and VXI
4
Agilent VISA User’s Guide
89
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
viOut16
(
vi, space, offset,
val16
)
;
Writes 16 bits of data to the specified
offset.
viOut32
(
vi, space, offset,
val32
)
;
Writes 32 bits of data to the specified
offset.
viMoveIn8(
vi, space, offset,
length, buf8
)
;
Moves an 8-bit block of data from the
specified offset to local memory.
viMoveIn16
(
vi, space, offset,
length, buf16
)
;
Moves a 16-bit block of data from the
specified offset to local memory.
viMoveIn32(
vi, space, offset,
length, buf32
)
;
Moves a 32-bit block of data from the
specified offset to local memory.
viMoveOut8(
vi, space, offset,
length, buf8
)
;
Moves an 8-bit block of data from local
memory to the specified offset.
viMoveOut16
(
vi, space, offset,
length, buf16
)
;
Moves a 16-bit block of data from local
memory to the specified offset.
viMoveOut32
(
vi, space, offset,
length, buf32
)
;
Moves a 32-bit block of data from local
memory to the specified offset.
Table 20
Summary of High-Level Memory Functions
Содержание E2094S
Страница 6: ...6 Agilent VISA User s Guide ...
Страница 116: ...116 Agilent VISA User s Guide 4 Programming via GPIB and VXI ...
Страница 126: ...126 Agilent VISA User s Guide 5 Programming via LAN ...
Страница 143: ...Glossary Agilent VISA User s Guide 143 Windows notification area See notification area ...
Страница 144: ...144 Agilent VISA User s Guide Glossary ...