Campbell-scientific CR3000 Micrologger Uživatelský manuál Strana 519

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 590
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 518
Appendix A. CRBasic Programming Instructions
519
FileOpen
OpensanASCIItextfileorabinaryfileforwritingorreading.
Syntax
FileHandle = FileOpen("FileName", "Mode", SeekPoint)
FileRead
ReadsafilereferencedbyFileHandleandstorestheresultsinavariableor
variablearray.
Syntax
FileRead(FileHandle, Destination, Length)
FileReadLine
ReadsalineinafilereferencedbyaFileHandleandstorestheresultinavariable
orvariablearray.
Syntax
FileReadLine(FileHandle, Destination, Length)
FileRename
ChangesthenameoffileonaCR3000drive.
Syntax
FileRename(drive:OldFileName, drive:NewFileName)
FileSize
ReturnsthesizeofafilestoredinCR3000memory.
Syntax
FileSize(FileHandle)
FileTime
ReturnsthetimethefilespecifiedbytheFileHandlewascreated.
Syntax
Variable = FileTime(FileHandle)
FileWrite
WritesASCIIorbinarydatatoafilereferencedintheprogrambyFileHandle.
Syntax
FileWrite(FileHandle, Source, Length)
Include
Insertscodefromafile(Filename)atthepositionoftheInclude()instructionat
compiletime.Includecannotbenested.
Syntax
Include("Device:Filename")
NewFile
Determinesifafilestoredonthedataloggerhasbeenupdatedsincethe
instructionwaslastrun.Typicallyusedwithimagefiles.
Syntax
NewFile(NewFileVar, "FileName")
Zobrazit stránku 518
1 2 ... 514 515 516 517 518 519 520 521 522 523 524 ... 589 590

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

Žádné komentáře