Description:
I have a question regarding DataSource CVS Direct, which is similar to existing question which also did not get a satisfying answer yet.
I am using the Simulator DataSource: CSV Direct in OpenEMS.
The datasource is enabled, the file exists, and the file is readable from Windows and from Command Prompt.
My CSV file contains one numeric value per line:
Code
500
800
1200
900
700
600
400
300
200
100
I verified the file with:
Code
type C:\OpenEMS\loadprofiles\myloadprofile.csv
The file is correct and readable.
Configuration:
-
Component-ID:
datasource0 -
Enabled: ✓
-
Source:
C:\OpenEMS\loadprofiles\myloadprofile.csv -
Time-Delta: 5
-
Factor: 1
-
CSV Format:
GERMAN_EXCEL(also tested DEFAULT/SIMPLE) -
GridMeter is bound to
datasource0
Behavior:
-
When I use the predefined datasource0 → everything works normally.
-
When I switch to CSV Direct →
meter0becomesUNDEFINED. -
Controller throws
InvalidValueException: ActivePower invalid. -
Live UI shows
Consumption = 0 W. -
CSV Direct never outputs any values.
What I expect:
CSV Direct should read each numeric line and output the values sequentially according to Time-Delta.
What actually happens:
CSV Direct does not output any values and the meter stays UNDEFINED.
Question:
Is there a known limitation or required CSV format for CSV Direct?
Does CSV Direct require a header, semicolons, or a specific parser setting?
Is looping supported, or does the datasource stop after reaching EOF?