Raptor-Dev-Data-Logging-Library: Difference between revisions
No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
|- | |- | ||
!Read File | !Read File | ||
| <p></p> | | <p>This block is used to read the contents of a file.</p> | ||
| [[file:ReadFile.jpg|frameless|border|Read File block|center]] | | [[file:ReadFile.jpg|frameless|border|Read File block|center]] | ||
|- | |- | ||
!Remove File | !Remove File | ||
| <p></p> | | <p>This block removes a file from the specified resource.</p> | ||
| [[file:RemoveFile.jpg|frameless|border|Remove File block|center]] | | [[file:RemoveFile.jpg|frameless|border|Remove File block|center]] | ||
|- | |- | ||
!Rename File | !Rename File | ||
| <p></p> | | <p>This block is used to rename a file on a resource. It cannot be used to move a file between resources</p> | ||
| [[file:RenameFile.jpg|frameless|border|Rename File block|center]] | | [[file:RenameFile.jpg|frameless|border|Rename File block|center]] | ||
|- | |- | ||
!Seek File | !Seek File | ||
| <p></p> | | <p>This block is used to move the current position in a file where the next read or write operation will occur.</p> | ||
| [[file:SeekFile.jpg|frameless|border|Seek File block|center]] | | [[file:SeekFile.jpg|frameless|border|Seek File block|center]] | ||
|- | |- | ||
! File Size | ! File Size | ||
| <p></p> | | <p>This block returns the size of the specified file in bytes.</p> | ||
| [[file:FileSize.jpg|frameless|border|File Size block|center]] | | [[file:FileSize.jpg|frameless|border|File Size block|center]] | ||
|- | |- | ||
!File Sync | !File Sync | ||
| <p></p> | | <p>This block flushes all pending data writes to the flash file system.</p> | ||
| [[file:FileSync.jpg|frameless|border|File Sync block|center]] | | [[file:FileSync.jpg|frameless|border|File Sync block|center]] | ||
|- | |- | ||
!Write File | !Write File | ||
| <p></p> | | <p>This block is used to write data to a file. The block accepts uint8 or string data types.</p> | ||
| [[file:WriteFile.jpg|frameless|border|Write File block|center]] | | [[file:WriteFile.jpg|frameless|border|Write File block|center]] | ||
|} | |} |
Revision as of 13:57, 7 April 2015
New Eagle > Products Wiki > Raptor Platform > Raptor-Dev > Raptor-Dev Data Logging Library
The blocks in this subsystem...
Blocks
Block | Description | Appearance |
---|---|---|
Erase |
This block is used to erase a value from the data log. |
|
Read |
This block is used to read a value from the data log. |
|
Write |
This block is used to write a value to the data log. |
|
USB Eject | When this block executes, all pending data to the USB drive is stored and the drive can be safely unmounted. |
|
USB Status | This block shows the current status of the USB drive. |
|
File Close | This block closes and opens a 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 EOF | This block is used to determine if the current file position is at the end of the file. |
|
File Exists | This block can be used to detect if a file exists on the specified resource. |
|
File Get Free Space | This block returns the free space on the specified resource. |
|
Open File | 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 Position | This block is used to get the current file position measured in bytes from the start of the file. |
|
Read File | This block is used to read the contents of a file. |
|
Remove File | This block removes a file from the specified resource. |
|
Rename File | This block is used to rename a file on a resource. It cannot be used to move a file between resources |
|
Seek File | This block is used to move the current position in a file where the next read or write operation will occur. |
|
File Size | This block returns the size of the specified file in bytes. |
|
File Sync | This block flushes all pending data writes to the flash file system. |
|
Write File | This block is used to write data to a file. The block accepts uint8 or string data types. |