# Using Simulator DataSource: CSV Predefined

**URL:** <https://community.openems.io/t/using-simulator-datasource-csv-predefined/2037>\
**Category:** English Forum\
**Created:** [October 22, 2023, 9:44am UTC](https://community.openems.io/t/using-simulator-datasource-csv-predefined/2037 "2023-10-22T09:44:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EEMChula](https://community.openems.io/user_avatar/community.openems.io/eemchula/32/786_2.png) [@EEMChula](https://community.openems.io/u/EEMChula)\
**Post date:** [October 22, 2023, 9:44am UTC](https://community.openems.io/t/using-simulator-datasource-csv-predefined/2037/1 "2023-10-22T09:44:14Z")

</div>

Hello folks,

I am trying to simulate my own load and PV data.

 ![image](https://community.openems.io/uploads/default/original/1X/0850d421e66bd188dbb01e9dc27123d7fe95e75a.png)

I defined the predefined data sources using these two files.

But log output shows as below:

2023-10-22T16:33:26,505 [\_cycle] INFO [ebuglog.ControllerDebugLogImpl] [ctrlDebugLog0] \_sum[State:Fault Ess SoC:50 %|L:0 W Consumption:0 W] ctrlBalancing0[State:FAULT: Running the Controller failed] ess0[SoC:50 %|L:0 W|Allowed:-10000;10000 W] meter0[UNDEFINED] meter1[UNDEFINED] modbus0[CycleDelay:987 ms]

Could you please advise to solve this issue?  
Thanks

Regards

---

<div class="post-metadata">

**Author:** ![tsicking](https://community.openems.io/user_avatar/community.openems.io/tsicking/32/954_2.png) [@tsicking](https://community.openems.io/u/tsicking)\
**Post date:** [October 24, 2023, 4:00pm UTC](https://community.openems.io/t/using-simulator-datasource-csv-predefined/2037/2 "2023-10-24T16:00:01Z")

</div>

Hi,

The information you provide is not sufficient to find the error. What I can see is that the meters don’t have active power values, and I assume the controller balancing uses either of them and therefore running it fails. Are the meters supposed to get the data from your datasources? If so, check the following:

1. Do the files `load-archive.csv` and `pv-archive.csv` look like they’re supposed to look lijke?
2. Are they in the right directory?

Best regards,  
Thomas

---

<div class="post-metadata">

**Author:** ![EEMChula](https://community.openems.io/user_avatar/community.openems.io/eemchula/32/786_2.png) [@EEMChula](https://community.openems.io/u/EEMChula)\
**Post date:** [October 25, 2023, 5:23am UTC](https://community.openems.io/t/using-simulator-datasource-csv-predefined/2037/3 "2023-10-25T05:23:14Z")

</div>

Thank you very much @tsicking. I have checked two files are in the right directory, but I ingested three months of data, and it raised the above errors. Now I changed the data already and the results are correct.

Thanks.

Regards

---

<div class="post-metadata">

**Author:** ![EEMChula](https://community.openems.io/user_avatar/community.openems.io/eemchula/32/786_2.png) [@EEMChula](https://community.openems.io/u/EEMChula)\
**Post date:** [October 29, 2023, 6:46am UTC](https://community.openems.io/t/using-simulator-datasource-csv-predefined/2037/4 "2023-10-29T06:46:19Z")

</div>

Hello folks,

I have load and PV data in every 15 m time resolution and unit in KW. I found the link:

> **[SimulatorEssSymmetricReactingImpl (OpenEMS Javadoc)](https://openems.github.io/openems.io/javadoc/io/openems/edge/simulator/ess/symmetric/reacting/SimulatorEssSymmetricReactingImpl.html#applyPower(int,int))**
>
> declaration: package: io.openems.edge.simulator.ess.symmetric.reacting, class: SimulatorEssSymmetricReactingImpl

 ![image](https://community.openems.io/uploads/default/original/1X/d05708499b6fd390076de1934a4f8f0970c5d20d.png)

I would like to know where should I edit to be the correct active power. Although there is some explanation in the above link, I don’t get it yet.  
Could anyone suggest?

Thank you in advance.
