Measurement-computing TempBook rev.3.0 Uživatelský manuál Strana 121

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 166
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 120
TempBook Users Manual
Enhanced
API Programming Models (TempBook) 10-25
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 TempBook
device closed, the binary file was then opened, the data unpacked, and then written to a text file.
Zobrazit stránku 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 165 166

Komentáře k této Příručce

Žádné komentáře