Agilent Technologies FS2010 Guide de l'utilisateur Page 129

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 160
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 128
Programming via GPIB and VXI 4
Agilent VISA User’s Guide 129
Sample: Determining Window Mapping
ViAddr address;
Vi UInt16 access;
ViUInt16 value;
.
.
.
viMapAddress(vi, VI_A16_SPACE, 0x00, 0x04,
VI_FALSE,
VI_NULL, &address);
viGetAttribute(vi, VI_ATTR_WIN_ACCESS, &access);
.
.
If(access==VI_USE_OPERS) {
viPeek16(vi, (ViAddr)(((ViUInt16 *)address) +
4/sizeof(ViUInt16)), &value)
}else if (access==VI_DEREF_ADDR){
value=*((ViUInt16
*)address+4/sizeof(ViUInt16));
}else if (access==VI_NMAPPED){
return error;
}
.
.
Setting the VXI Trigger Line
The VI_ATTR_TRIG_ID attribute is used to set the VXI
trigger line. This attribute is listed under generic attributes
and defaults to VI_TRIG_SW (software trigger). To set one of
the VXI trigger lines, set the VI_ATTR_TRIG_ID attribute as
follows:
viSetAttribute(vi, VI_ATTR_TRIG_ID,
VI_TRIG_TTL0);
Vue de la page 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 159 160

Commentaires sur ces manuels

Pas de commentaire