First time here? Check our help page!
1

E+ and DataBase synchronization in BCVTB

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.

NasimMirian's avatar
293
NasimMirian
asked 2016-09-19 08:55:07 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2016-09-19 09:17:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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

Thierry Nouidui's avatar
1.5k
Thierry Nouidui
answered 2016-09-19 12:29:44 -0500, updated 2016-09-19 13:34:23 -0500
edit flag offensive 0 remove flag delete 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 (2016-09-19 13:54:26 -0500) edit

That was asked here.

Adam Hilton's avatar Adam Hilton (2016-09-19 14:09:53 -0500) edit
add a comment see more comments