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 8 years ago

NasimMirian's avatar

updated 8 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 8 years ago

updated 8 years ago

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

Preview: (hide)
link

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  ( 8 years ago )

That was asked here.

Adam Hilton's avatar Adam Hilton  ( 8 years ago )

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: 8 years ago

Seen: 201 times

Last updated: Sep 19 '16