File Logger Signal

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
Supported Targets: Olimexino, E407, P405

General information about File Logger Signal

The 'File Logger Signal' block configures the input signal of the block to be logged by the File Logger Module. This means that the value of the input signal will be sampled by the File Logger Module and written to the log-file on the SD-card.


The File Logger Close block must be present and called explicitly to stop logging, otherwise no file will be written to 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 inputs (inports)

Input: The signal to be logged. The data type of course differs for different applications.

Block parameters

Parameter Description
Filename Here you can enter the file name of the log file.
Add auto-incrementing number to file name When this box is ticked the program will add a three digit number behind the file name. Each time a new file is made the number will be incremented.
First line in log file The user can specify the first line in the log file. This way the file can be easily read.
Logging interval (ms) The logging interval and so inherently the frequency is entered here. Note that the first column of the log file contains the actual time at which the signals were written to the logfile.
Maximum signals to log The amount of signals in the model that need to be logged, this needs to be the same as the number of File Logger Signal blocks
Use dot-character as decimal separator (comma otherwise) When this box is ticked the decimal separator will be a '.' instead of a ','.
Automatically start logging When this box is ticked the logging will start as soon as the target is started. Otherwise the logging has to be started by using the trigger input.


SD card logger

See Also

File logger close | File logger init