Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

E+ and DataBase synchronization in BCVTB

asked 2016-09-19 08:55:07 -0600

NasimMirian's avatar

updated 2016-09-19 09:17:25 -0600

Hello,

I am trying to send 96 tokens to E+ from a database actor (input to E+). But it seems that E+ produces 97 tokens in its output. The first token is initial values. how can I get rid of that initial token? (That extra token unbalances the comparison between input and output of E+)

The number of iterations at SDF director is 97.

Any Idea?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-09-19 12:29:44 -0600

updated 2016-09-19 13:34:23 -0600

Hi,

Attached is a model which discards the first (0.0) of a series of values. I used the Counter actor to detect the first firing. I then used an Expression actor to evaluate the condition which when true will activate a Boolean Switch. This switch will then serve a bypass for the desired output values. I think you can use such a construct for your case. The system model is at C:\fakepath\system_DiscardInitial.jpg. If you remove the Switch, the Counter, the Expression actor, and connect the CurrentTime actor to the Display actor, you will see the first value which has been removed. Please renamed the file extension from .jpg to xml to test the system model.

Thanks!

Thierry

edit flag offensive delete link more

Comments

1

Thank you for your response.

I have tried that but the E+ outputs are still one time step ahead than the inputs (after discarding the first token). what do you recommend? what about adding a sample delay in input path?

NasimMirian's avatar NasimMirian  ( 2016-09-19 13:54:26 -0600 )edit

That was asked here.

Adam Hilton's avatar Adam Hilton  ( 2016-09-19 14:09:53 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2016-09-19 08:55:07 -0600

Seen: 189 times

Last updated: Sep 19 '16