---
title: "Data Importer | Examples | N3uron KB V1.22"
slug: "data-importer-examples"
description: "Data Importer is a N3uron module designed to import data from CSV files containing aggregated data. This module allows data to be automatically imported…"
updated: 2025-12-22T18:30:41Z
published: 2025-12-22T18:30:41Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.n3uron.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Example

## Importing a CSV file using DataImporter

The following example demonstrates how the **Data Importer** module can be used to import data from a CSV file.

- **Step 1:** Add a new module in the “Modules” section, choose a name, and select “DataImporter” as the “Module type”.

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%208-%20Creating%20new%20module%20instances(1).png)

- **Step 2:** Configure the **Logger** and **API** settings for the **Data Importer** module. In this example, the default configuration is left unedited since, in most cases, this is a valid configuration.
- **Step 3:** Add a new **Agent** in the “Model” section and choose a name for it.

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%209-%20Creating%20a%20new%20agent(1).png)

- **Step 4:** Configure the **Agent** (Enabled, Scan rate, Path, Parser, etc.) and save the changes. In this example, data will be imported from a CSV file located in the folder for this **Data Importer** instance (C:\Program Files (x86)\N3uron\data\DataImporter\input).

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2010-%20Agent%20parameters.png)

- **Step 5:** Add a new **Tag** in the **Model** section and choose a name for it.

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2011-%20Creating%20a%20new%20tag(1).png)

- **Step 6:** Configure the Tag (Filename, Period, Mode, Input Tag Group, etc.). In this example, the “CURRENT” tag will be imported from a CSV file containing the dataset for an electrical meter.

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2012-%20Tag%20parameters.png)

- **Step 7:** Place the CSV file for importing within the input folder for this **Data Importer** instance.

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2013-CSV-file-import.png)

In this example, the following data have been used:

```none
:Tag,min,max,first,last,avg,count,good
ANGLE_PHASE,333.30,333.81,333.37,333.30,333.52,9,1.00
CURRENT,4.15,4.24,4.16,4.16,4.19,10,1.00
ENERGY_ACTIVE_IMPORTED,8584.83,8584.84,8584.83,8584.84,8584.84,2,1.00
ENERGY_ACTIVE_EXPORTED,0,0,0,0,0,1,1.00
FREQUENCY,50,50.05,50.05,50,50.00,2,1.00
POWER_ACTIVE,729.36,746.19,729.38,730.33,734.67,13,1.00
POWER_ACTIVE_MAX,4872.16,4872.16,4872.16,4872.16,4872.16,1,1.00
POWER_APPARENT,815.94,832.45,815.94,817.36,821.09,13,1.00
POWER_FACTOR,0.90,0.90,0.90,0.90,0.90,1,1.00
POWER_REACTIVE,-368.99,-365.57,-365.72,-366.97,-366.64,13,1.00
VOLTAGE,231.45,232.26,231.83,232.05,231.83,13,1.00
```

Result:

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2014-Loaded-CSV-file.png)

![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2015-%20Current%20tag.png)
