> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datscan-analyser/csv-converter.md).

# Convert RAW files with the EP3 CSV Converter

Turn RAW log files into CSV files on a PC when the EP3 couldn't convert them.

Occasionally the EP3 Data manager may fail to convert the raw data files to CSV, or the files get corrupted on the EP3. In this situation, the user can manually convert the files to CSV form without using DatScan Analyser. In this manner files can be recovered for later processing by a spreadsheet or import to a SQL database.

{% hint style="info" %}
**Applies to:** EP3 CSV Converter, bundled with the DatScan Analyser installation. DatScan Analyser will also import and convert the raw format and uses a software utility called EP3CSVConverter.exe to do this.
{% endhint %}

## What you need

* The RAW file from the EP3's SD card.
* The converter program, EP3CSVConverter.exe. The utility is stored in the program files folder where DatScan Analyser is installed.

## Convert a file

1. Remove the SD card from the EP3 and insert into a PC with an SD card slot.
2. Copy the RAW files into a folder on the PC hard drive.
3. Open a Windows command prompt (note there are other several ways of doing this). Win+r will open the Windows run dialogue ("win" means the Windows key on the keyboard). Type `cmd` to open a windows command prompt window.
4. Navigate to the folder containing the EP3CSVConverter utility. If Datscan Analyser is installed it will be in the Datscan Folder e.g.

   ```
   cd "C:\Program Files (x86)\QTech\DatScan Analyser"
   ```
5. Run the utility.

   ```
   ep3csvconverter <filename.raw> [Q54|WDL]
   ```

   Enter the name of the raw data file to convert. Optionally enter the format you wish to convert from Q54 or WDL, if this argument is not supplied the default is WDL. The two data loggers use slightly different raw file formats.

The output file will have the same filename but with a .CSV suffix. If you supply no command line arguments a command line usage message is displayed.
