Raptor:Data Logging File Close: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
(Created page with 'Return to the main Raptor page Return to File IO page [[File:RaptorDataLoggingFileClose.png|right|frame|Raptor™ Data Logging Fi…')
 
No edit summary
Line 6: Line 6:


== Description ==
== Description ==
<p>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.</p>
<p>This block will close a file, given the file handle and specified hardware on which the file is stored.</p>
 
<p>Valid hardware resources vary, but typically include a connected USB storage device, and the modules built-in non-volatile data flash memory.</p>
 
<p>When writing to a file, application designers should ensure that log files are closed using Raptor File Close blocks after each file write operation. This can help prevent memory overflows and corruption of log files.</p>
 
<p>When writing to a file, application designers should ensure that log files are closed using Raptor File Close blocks after each file write operation. This can help prevent memory overflows and corruption of log files.</p>


== Inputs ==
== Inputs ==
Line 18: Line 24:
| File Handle
| File Handle
| Specifies the file to be closed.
| Specifies the file to be closed.
|}
== Outputs ==
{| class="wikitable" style="width:75%;"
|-
! scope="col" style="width: 15%;"|Output
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
|}
|}



Revision as of 20:31, 12 September 2023

Return to the main Raptor page

Return to File IO page

Raptor™ Data Logging File Close

Description

This block will close a file, given the file handle and specified hardware on which the file is stored.

Valid hardware resources vary, but typically include a connected USB storage device, and the modules built-in non-volatile data flash memory.

When writing to a file, application designers should ensure that log files are closed using Raptor File Close blocks after each file write operation. This can help prevent memory overflows and corruption of log files.

When writing to a file, application designers should ensure that log files are closed using Raptor File Close blocks after each file write operation. This can help prevent memory overflows and corruption of log files.

Inputs

Input Type Description
File Handle File Handle Specifies the file to be closed.

Parameters

Parameter Type Description
Resource Specify the resource which contains the file to close.