Raptor:Display USB Eject: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
No edit summary
 
Line 6: Line 6:


== Description ==
== Description ==
<p>When this block executes all pending data to the USB drive is stored and the drive is safely unmounted.</p>
<p>This block, when executed, stores all pending data to the USB drive, and allows for safe USB removal. It is best to have this block in a subsytem that is triggered when the user wishes to safely remove the USB from the data logger.</p>


== Inputs ==
<p>Asserting the USB eject mechanism will force a file sync - flushing log file buffers in RAM out to the specified log file on the USB storage device.</p>
{| class="wikitable" style="width:75%;"
|-
! scope="col" style="width: 15%;"|Input
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
|}


== Outputs ==
<p>The "Ready to Eject" output of the Display USB Status will be set true when the USB Eject block has been asserted and the USB controller has finished the process of preparing the device for detection. The USB storage device should not be physically removed from the VeeCAN module until the "Ready to Eject" output of the USB status block is true.</p>
{| class="wikitable" style="width:75%;"
|-
! scope="col" style="width: 15%;"|Output
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
|}


== Parameters ==
<p>Note: Removing the USB storage device without ejecting it can result in all data written to the log file since the last successful sync operation being lost.</p>
{| class="wikitable" style="width:75%;"
|-
! scope="col" style="width: 15%;"|Parameter
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
|}

Latest revision as of 16:25, 13 September 2023

Return to the main Raptor page

Return to File IO page

Raptor™ Display USB Eject

Description

This block, when executed, stores all pending data to the USB drive, and allows for safe USB removal. It is best to have this block in a subsytem that is triggered when the user wishes to safely remove the USB from the data logger.

Asserting the USB eject mechanism will force a file sync - flushing log file buffers in RAM out to the specified log file on the USB storage device.

The "Ready to Eject" output of the Display USB Status will be set true when the USB Eject block has been asserted and the USB controller has finished the process of preparing the device for detection. The USB storage device should not be physically removed from the VeeCAN module until the "Ready to Eject" output of the USB status block is true.

Note: Removing the USB storage device without ejecting it can result in all data written to the log file since the last successful sync operation being lost.