Agilent Technologies E2094S Guide de l'utilisateur Page 89

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 146
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 88
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
Vue de la page 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 145 146

Commentaires sur ces manuels

Pas de commentaire