--- title: "Data Exporter | Examples | N3uron KB V.1.20" slug: "data-exporter-examples" description: "Data Exporter is a N3uron module designed to generate XML or CSV files containing raw or aggregated data. This data is collected from selected tag groups…" updated: 2022-01-18T11:04:34Z published: 2022-01-18T11:04:34Z canonical: "docs.n3uron.com/data-exporter-examples" --- > ## 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. # Examples ## FTP Example In this example, the **DataExporter** module is used to upload all data sent from an OPC UA client to an FTP server. - **Step 1**: Add a new module in the **"**Modules**"** section, choose a name, and select **"**DataExporter**"** in the **"**Module type**"** field. ## ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2010-%20Creating%20a%20new%20module.png)Figure 10: Creating a new module ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2011-%20Choosing%20a%20module.png)Figure 11: Choosing a module - **Step 2:** Configure the **Logger** and **API** for the **DataExporter** module. In this example, the default configuration has been left unchanged, since in most cases, this is a valid configuration option. - **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%2012-%20Creating%20a%20new%20agent.png)Figure 12: Creating a new Agent - **Step 4:** Configure the Agent (Output path, File compression, File type, Date format, File upload, etc.) and save the changes. In this example, data will be transferred to FileZilla, which is a free local FTP client. Since the files will be uploaded to an FTP server, the agent has been named “Agent_FTP“. All files will be exported as XML Files. The date format is *ISO8601*. For the connection section, configuration would be as follows: Host: *localhost*, Port: *21*, Username: *FTP server*. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2013-%20Agent%20Parameters.png)Figure 13: Agent parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2014-%20Agent%20parameters.png)Figure 14: Agent parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2015-%20FileZilla%20FTP%20server.png)Figure 15: FileZilla FTP server - **Step 5**: Add a new group in **Agent** and select a name for it. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2016-%20Creating%20a%20new%20group.png)Figure 16: Creating a new Group - **Step 6:** Configure the **Group** (Filename, Period, Mode, Input tag group, etc.). In this example, the Group has been named “Electrical meter”, since the data has been collected from an electrical meter. The “Electrical meter” tag group has been selected in the “Input Tag Group” field in order to filter the data due to be exported. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2017-%20Group%20parameters.png)Figure 17: Group parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2018-%20Tag%20Group%20options.png)Figure 18: Tag groups options **Result:** ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2019-%20Exported%20file%20folders.png) Figure 19: Exported file folders ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2020-%20Exported%20group%20folders.png)Figure 20: Exported group folders Exported XML file: ```markup - ``` ## SFTP Example In this example, the **DataExporter module** is used to upload data being sent from an OPC UA client to an SFTP server. - **Step 1**: Add a new module in the "Modules" section, choose a name and select "DataExporter" in the "Module type" field. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2021-%20Creating%20a%20new%20module.png)Figure 21: Creating a new module ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2022-%20Choosing%20a%20module.png)Figure 22: Choosing a module - **Step 2:** Configure the **Logger** and **API** for the **DataExporter** module. In this example, the default configuration has been left as it is, since in most cases, this is a valid configuration option. - **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%2023-%20Creating%20a%20new%20agent.png)Figure 23: Creating a new Agent - **Step 4:** Configure the **Agent** (Output path, File compression, File type, Date format, File upload, etc.) and save the changes. In this example, the data will be transferred to Rebex Tiny, which is a free local SFTP server. Since the files will be uploaded to a local SFTP server, the Agent has been named "Agent_SFTP". The files will be exported as CSV Files. The date format is ISO8601. For the connection section, the configuration would be: Host: *localhost*, Port:*22*, Username: *tester*. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2024%20Agent%20parameters.png)Figure 24: Agent parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2025-%20Agent%20parameters.png)Figure 25: Agent parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2026-%20Rebex%20Tiny%20SFTP%20Server.png)Figure 26: Rebex Tiny SFTP server - **Step 5:** Add a new group in the “Agent” field and specify a name for it. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2027-%20Creating%20a%20new%20group.png)Figure 27: Creating a new Group - **Step 6:** Configure the **Group** (Filename, Period, Mode, Input tag group, etc.). In this example, the Group has been named “Electrical meter”, since the data has been collected from an electrical meter. The “Electrical meter” tag group has been selected in the “Input Tag Group” field in order to filter the data due to be exported. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2028-%20Group%20parameters.png)Figure 28: Group parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2029-%20Tag%20Group%20Options.png)Figure 29: Tag group options **Result:** ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2030-%20Exported%20data%20folder.png)Figure 30: Exported data folder Exported CSV file: ```actionscript #Name=Electrical meter #Start=2021-04-19T10:39:00Z #End=2021-04-19T10:40:00Z :Tag,min,max,first,last,avg,count,good ANGLE_PHASE,333.97,333.97,333.97,333.97,333.97,1,1.00 CURRENT,4.77,4.77,4.77,4.77,4.77,1,1.00 ENERGY_ACTIVE_IMPORTED,8545.32,8545.32,8545.32,8545.32,8545.32,1,1.00 ENERGY_ACTIVE_EXPORTED,"null","null","null","null","null",0,0 FREQUENCY,"null","null","null","null","null",0,0 POWER_ACTIVE,856.02,856.02,856.02,856.02,856.02,1,1.00 POWER_ACTIVE_MAX,"null","null","null","null","null",0,0 POWER_APPARENT,952.82,952.82,952.82,952.82,952.82,1,1.00 POWER_FACTOR,"null","null","null","null","null",0,0 POWER_REACTIVE,-418.39,-418.39,-418.39,-418.39,-418.39,1,1.00 VOLTAGE,234.61,234.61,234.61,234.61,234.61,1,1.00 ```