Raptor:Data Logging File IO

From NewEagleWiki
Revision as of 21:19, 7 July 2014 by Mreed (talk | contribs)
Jump to navigation Jump to search

Return to the main Raptor page

Return to Data Logging Libraries page

Raptor™ Data Logging File IO

The blocks in this subsystem are used for file I/O on an available file system, such as a USB stick.

Blocks

Block Description Appearance
File Close

This block closes an open file and flushes all data written to the file system. All files should be closed before the module powers off to ensure data is not lost.

File Close block
File Close block
File EOF

This block is used to determine if the current file position is at the end of the file.

File EOF block
File EOF block
File Exists

This block can be used to detect if a file exists on the specified resource.

File Exists block
File Exists block
File Get Free Space

This block returns the free space on the specified resource.

File Get Free Space block
File Get Free Space block
File Open

This block opens a file for read and/or write. It outputs a File Handle which is used with other blocks to read, write and seek within the file.

File Open block
File Open block
File Position

This block is used to get the current file position measured in bytes from start of file.

File Position block
File Position block
File Read

This block is used to read the contents of a file.

File Read block
File Read block
File Remove

This block removes a file from the specified resource.

File Remove block
File Remove block
File Rename

This block is used to rename a file on a resource. It cannot be used to move a file between resources.

File Rename block
File Rename block
File Seek

This block is used to move the current position in a file where the next read or write operation will occur.

File Seek block
File Seek block
File Size

This block returns the size of the specified file in bytes.

File Size block
File Size block
File Sync

This block flushes all pending data writes to the flash file system.

File Sync block
File Sync block
File Write

This block is used to write data to a file. The block accepts uint8[] or string data types.

File Write block
File Write block