Agilent Technologies FS2010 Guide de l'utilisateur Page 42

  • 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 41
42 Agilent VISA User’s Guide
3 Programming with VISA
Sample: Searching the VXI Interface for Resources
This code sample searches the VXI interface for resources.
The number of matches found is returned in nmatches, and
matches points to the string that contains the matches
found. The first call returns the first match found, the
second call returns the second match found, etc.
VI_FIND_BUFLEN is defined in the visa.h declarations file.
ViChar buffer [VI_FIND_BUFLEN];
ViRsrc matches=buffer;
ViUInt32 nmatches;
ViFindList list;
.
.
viFindRsrc(defaultRM, "VXI?*INSTR", &list,
&nmatches, matches);
..
.
viFindNext(list, matches);
.
.
viClose(list);
Table 10 Determining What to Use for the expr Parameter
Interface expr Parameter
GPIB GPIB[0-9]*::?*INSTR
VXI VXI?*INSTR
GPIB-VXI GPIB-VXI?*INSTR
GPIB and GPIB-VXI GPIB?*INSTR
All VXI ?*VXI[0-9]*::?*INSTR
ASRL ASRL[0-9]*::?*INSTR
All ?*INSTR
Vue de la page 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 159 160

Commentaires sur ces manuels

Pas de commentaire