beautypg.com

Measurement Computing TempBook rev.3.0 User Manual

Page 123

background image

TempBook User’s Manual

Enhanced API Programming Models (TempBook) 10-27

print userBuf(i)
VBdaqAdcTransferGetStat(handle, active, retCount);
next i
print "Acquisition complete."

Now the data can be displayed or manipulated:

Print "Data acquired:"
For i& = 0 To channels& - 1
Print "Channel"; i& + 1; "Data:";
For j& = 0 To scans& - 1
Print Tab(j& * 7 + 17); buf%(j& * channels& + i&);
Next j&
Print
Next i&

Finally, close the device:

ret& = VBdaqClose(handle&)