Difference between revisions of "HANcoder/STM32/Blocks/File Logger Close"
(Created page with "{{HANcoder/block| info= With the File Logger module active, the data values of the configured signals are sampled at a fixed time interval and written to the log-file on the...") |
|||
Line 11: | Line 11: | ||
|maskImage= | |maskImage= | ||
FileLoggerCloseMask.png | FileLoggerCloseMask.png | ||
+ | }} | ||
+ | |||
+ | == Block inputs (inports) == | ||
+ | Trigger input: When the value of this signal changes from 0 to 1 the file logger close block will be executed and the file on the SD card will be closed. | ||
+ | |||
+ | == Examples == | ||
+ | [[HANcoder/Examples/SD_Card_Logger| SD card logger ]] | ||
+ | |||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/File_Logger_Init|File logger init]] {{!}} [[HANcoder/File_Logger_Signal|File logger signal]] | ||
}} | }} |
Revision as of 07:25, 21 April 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about File Logger Close
With the File Logger module active, the data values of the configured signals are sampled at a fixed time interval and written to the log-file on the SD-card. The log-file needs to be explicitly closed at the end of a logging session for the log-file to actually appear on the SD-card. Ideally, this block is called during software shutdown for example when the ignition signal goes low in automotive applications. An external trigger can also be used such as a button press event or CAN message reception.
Block
Mask
Block inputs (inports)
Trigger input: When the value of this signal changes from 0 to 1 the file logger close block will be executed and the file on the SD card will be closed.