> 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/import.md).

# Import data from the EP3

Copy the log files off the EP3 by SD card or USB, import them, and archive old files.

Log files can be transferred from the EP3 using the SD Card or the USB Interface. After Datscan imports the data it places the log file into the BACKUP folder so this automatically creates a backup of the RAW or CSV data for later reference.

{% hint style="info" %}
**Applies to:** DatScan Analyser with the EP3 Data Manager and Wireless Data Loggers. Cellular systems connected to a SQL database via DATAHost automatically import data into the database.
{% endhint %}

## Before you start

* Collect the logs with the EP3. See [Retrieve data from a logger](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/ep3-data-manager/retrieve-data.md).
* Set up DatScan Analyser's folders and sites. See [Set up sites, filters and the database](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datscan-analyser/set-up.md).

### RAW or CSV?

The EP3 holds two kinds of data log files on the SD Card as identified by the file suffix ".RAW" and ".CSV". RAW files are in the same format as they are stored on the data logger. The two files are two representations of the same data so only one of them needs be imported into the Database. The Datscan Analyser software can import either file depending on what the user chooses (usually the CSV). CSV files are imported by default but if the CSV file is not present or corrupt the RAW format can be selected. If a CSV file is not present but the RAW file is, then the RAW file will be converted before importing.

If you want to look at the data before it goes into the database you need to make CSV files. Also, if you want to plot data directly in Microsoft Excel you must create CSV files.

## Copy the files using the SD card

1. Turn the EP3 off and remove the SD Card and insert it into the SD Card reader slot in your laptop (or on your desktop PC if you use a special SD Card adaptor that plugs into a USB port). The SD Card will appear as a disk drive on your Windows PC.
2. All the Data is stored in the LOGGING folder on the SD card.
3. You can use windows File Explorer to select all the CSV files from the LOGGING folder on the card. If you don't have a corresponding CSV file for a RAW file then include the RAW file in your selection.
4. Copy the files to your Datscan Analyser IMPORT folder on your PC or network Drive.

## Copy the files using USB

If you don’t have an SD Card slot in your desktop PC or laptop you can get data from the EP3 by using the USB Interface. You must have a Type A-Type B USB cable to connect your PC to the EP3.

1. Plug in the cable to the EP3 then turn on the EP3.
2. Tap **OK** on the EP3 screen then tap **USB** to navigate to the USB menu then tap **CON** to connect to the PC. Once the EP3 is connected it will show up in Windows File Explorer as a drive.
3. Windows may install a USB driver for the device on first connection, wait until the driver has installed before proceeding. Ensure that your computer is connected to the internet in case the latest driver needs to be downloaded. Do not pull out the plug whilst this is being done.

The log data will be in the LOGGING folder. When you are finished tap the **DCON** button on your EP3 to disconnect the USB connection. If it fails to respond just turn off the EP3 and remove the plug.

![The EP3's USB screen, with the CON, DCON and HOME buttons](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FFQzTjiuNQDlvmuAzVUmD%2Fep3-usb-screen.jpg?alt=media)

## Import the files

1. Click the **Import** button from the DatScan Analyser main screen.
2. WDL formats are imported by default. When importing data from Q54 units, select the check box marked **Q54 file format**.
3. The **From Folder** and **From File** buttons initiate the import process. Just below the buttons, the default file location for the import is displayed. This is configured from the System Configuration dialog but can be changed again when a button is clicked. From Folder - Clicking this button will import all CSV files from the specified folder. From File - This works the same as the From Folder but allows the import of a single file.
4. Click OK to commence the import. Large file imports can be quite time consuming, so depending on the usage of your Data Loggers and the number of Data Loggers you have this could take several minutes. A gauge indicates progress.
5. Once the import is complete it is recommended that this report is carefully read and any alerts raised in the report need to be considered - see [Import report messages](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datscan-analyser/import-messages.md). The report can be printed once the import is complete.

During the import process the Exit button will turn into a Cancel button. Pressing this will terminate the currently import and remove any partially imported data regarding that Data Logger from the database such that it can be re-imported later. If the Cancel button was pressed during an import then the file will remain in the import folder location and will not be present in the Backup folder.

{% hint style="warning" %}
**If you import by folder it imports all the files in the folder (both RAW and CSV)** which may import the data twice so it will take a little longer but it ought not to create duplicate data in the data (unless there is an error in one of the files) but it does mean the whole process takes fewer clicks. Consider archiving log files off the SD Card to reduce this burden.
{% endhint %}

## What happens to imported files

When a file has been successfully imported it is archived (copied) to a folder of the same name as the Site Code, created in the Backup folder, as specified in the System Configuration dialog. The CSV file is then removed from its import folder location. To avoid a file being imported multiple times, the Backup folder is checked to see if the file already exists before an import takes place. An alert is displayed in the Report Area and the file is skipped if this is found to be the case.

## Archive old files from the SD card

There is no real need to leave log data on the SD Card especially if you have copies of the files in the BACKUP folder on the PC if you have previously imported the data. By Archiving the data on the SD Card you will not also re-import the same old data each time you import new files.

1. Import any new files first.
2. Try making an Archive by copying old log files to a backup location on you PC or shared network drive. This folder can then be used as an additional backup in case you lose the data otherwise. You can of course create any folder you wish for the purpose but preferable one that other users have access to.
3. Once you have copied the logs delete them from your SD Card.

## New sites

For sites not yet configured the Site Code heading should be imported when uploading from the EP3 for first time. However, the Site Name, Category and Location details need to be loaded manually in the sites tables. These changes are made using the site Update option. See [Set up your sites](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datscan-analyser/set-up.md). Data in the log files will not be imported until the remaining configuration information is entered into the sites table. Once this information is entered the import process can be rerun and the data will be imported.

![The site Update window, with fields for Site Code, Site Name, Category, Location and Notes](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FyU7LBP3iFcEu4oHKDeXK%2Fanalyser-site-update.png?alt=media)
