Back to the Utilities main page

AVR UC3 Series Software Framework: DSPLib - Data Extraction for Windows.

Copyright © 2007 Atmel Corporation

Introduction

This program is used to extract data from a buffer and print them with the following format on the standard output.

	0.2997845
	-0.4710849
	...
It parses every line of the input buffer and check if it matches with the given pattern (gave in argument to this program). If it does, it will extract the specified data from the buffer and print it, else it will ignore the line.

Usage

	DataExtract input_buffer_file_path pattern n_arg
The input_buffer_file_path argument is the file path of the input buffer.
The pattern argument is the pattern used to parse the line. This pattern is uses the same syntax as the printf function.
Example: if you want to parse a complex number, you will have to use the following pattern: "%f + %fi".
The n_arg argument specifies the index of the number to extract form the previously defined pattern.


Usage example:
To extract the 2nd number of a file which lines are defined as follow: integer float integer
DataExtract ./buffer.txt "%i %f %i" 2

Compilation

Tool sources descriptions:

  • Directory: [ DSPLIB ]/UTILS/PROGRAMS/WINDOWS/DATA_EXTRACT/
  • Language: C
  • Disclaimer: This tool has been tested on Windows XP Professional.
  • First of all, to compile this software you need to download a free compiler called Dev-C++, available here.

    Then double click on the DataExtract.dev file and Dev-C++ will open. To compile the software, go to Execute>Compile and it will create an executable called DataExtract.exe that you can launch following the section "Usage" .

     


    AVR is a registered trademark of Atmel Corporation.