Measurement Computing WaveBook rev.3.0 User Manual
Page 193
![background image](https://www.manualsdir.com/files/797847/content/doc193.png)
WaveBook User’s Manual,
6-22-99
daqX API - Programming Models C-19
Write the scans read and unpacked to the text file
For i& = 0 To scanCount& - 1
For j& = 0 To channels& - 1
Send a tab between channels and a newline after each scan:
If (j& < channels& - 1) Then
termChar$ = Chr$(9)
Else
termChar$ = Chr$(13) + Chr$(10)
End If
Calculate and write out the voltage value:
voltage! = buf%(i& * channels& + j&) * 5! / 32768!
Print #2, Format$(voltage!, ".000") + termChar$;
Next j&
Next i&
Print something so the program does not appear to be locked:
Print ".";
Loop While (byteCount& > 0) ' A byteCount of 0 indicates end-of-file
' Close the input and output files
Close 1
Close 2
Print "complete."
After program execution: data has been collected directly to disk in a binary file format, the WaveBook
device closed, the binary file was then opened, the data unpacked, and then written to a text file.
- ACC-300 (7 pages)
- AI-EXP32 (20 pages)
- AI-EXP48 (19 pages)
- BTH-1208LS (30 pages)
- 6K-ERB08 (32 pages)
- BTH-1208LS Quick Start (4 pages)
- 6K-SSR-RACK08 (33 pages)
- BTH-1208LS-OEM (27 pages)
- CB-COM-Digital (68 pages)
- CB-7018 (68 pages)
- CB-7000 Utilities (44 pages)
- CB-7080D (74 pages)
- CB-COM-7033 (44 pages)
- CB-COM-7017 (72 pages)
- CB-COM-7024 (76 pages)
- CB-NAP-7000P (36 pages)
- CIO-DAC02/16 (16 pages)
- CIO-DAC02 (18 pages)
- CB-NAP-7000D (56 pages)
- CIO-DAC16-I (16 pages)
- CIO-DAC16/16 (20 pages)
- CIO-DAS08 (21 pages)
- CIO-DAC16 (20 pages)
- CIO-DAS08/JR (16 pages)
- CIO-DAS08/JR/16 (14 pages)
- CIO-DAS08/JR-AO (16 pages)
- CIO-DAS08-AOM (32 pages)
- CIO-DAS08-PGM (28 pages)
- CIO-DAS16/330 (34 pages)
- CIO-DAS48-I (17 pages)
- CIO-DAS16/M1 (38 pages)
- CIO-DAS48-PGA (18 pages)
- CIO-DAS800 (20 pages)
- CIO-DAS802/16 (22 pages)
- CIO-DAS6402/16 (40 pages)
- CIO-DAS-TEMP (20 pages)
- CIO-DDA06/16 (18 pages)
- CIO-DDA06/JR (17 pages)
- CIO-DIO24H (20 pages)
- CIO-DIO24/CTR3 (21 pages)
- CIO-DI192 (24 pages)
- CIO-DDA06 (21 pages)
- CIO-DIO48 (19 pages)
- CIO-DO192H (16 pages)
- CIO-DIO192 (20 pages)