How to connect a database to E+ using BCVTB in each timestep

asked 8 years ago

NasimMirian's avatar

updated 8 years ago

I am trying to receive data from a database (PostgreSQL)( each row in each time step) and send it to Eplus model. I am using SQLStatement in BCVTB to retrieve data. However it brings the entire 8760 row in each time step. Any suggestion how can I get the first row of data in first time step, the second row in the second time step and the same for other rows?image description

The picture shows how data converted from string to Array of doubles but still time step is the main problem.

Preview: (hide)

Comments

Glad to see some traffic on the Building Virtual Control Test Bed on Unmet Hours :)

Julien Marrec's avatar Julien Marrec  ( 8 years ago )