Measurement-computing WaveBook rev.3.0 Bedienungsanleitung Seite 179

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 236
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 178
WaveBook User’s Manual,
6-22-99
daqX API - Programming Models C-5
ret& = VBdaqAdcRdScan&(handle&,1, channels&, buf%(), DgainX1&,
DafAnalog&+DafUnipolar&)
Print “Results of AdcRdscan:”
For x& = 0 To 7
Print Format$“& # & ####”; “Channel:”; buf%(x); “Data:”; buf%(x)
Next x&: Print
Finally, the program will collect 9 scans from channels 1 through 7 with an immediate trigger, then display
the results.
ret& = VBdaqAdcRdScanN& (handle&, 1, channels&, buf%(), scans&,
DatsImmediate&, rising&, 0!, freq!, gain&, flags&)
For i& = 0 To channels&-1
Print Format$“& # & ####”; “Channel:”; i&+1; “Data:”;
For j& = 0 To scans&-1
print Tab(j&*7+17); InttoUint(buf%(j&*channels&+i&));
next j
print
next i&
Now to close the device when it’s no longer needed:
ret& = VBdaqAdcClose(handle&)
Seitenansicht 178
1 2 ... 174 175 176 177 178 179 180 181 182 183 184 ... 235 236

Kommentare zu diesen Handbüchern

Keine Kommentare