Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickering data on plots [client] #144

Open
cesarcarc opened this issue Apr 24, 2020 · 3 comments
Open

Flickering data on plots [client] #144

cesarcarc opened this issue Apr 24, 2020 · 3 comments
Labels
bug Something isn't working client

Comments

@cesarcarc
Copy link
Contributor

Action 1:

  • Load House demo
  • Let it run for sometime (simulation running faster than real time)
  • Create a new plot (time series) and add all the outputs from "Temp Controller"

Result 1:
image

Data flickers as seen in the image above. Issue is quite frequent. Almost every other second. Could it be because the values are constant?

@cesarcarc
Copy link
Contributor Author

I am not sure it is connected, but I have observed (after I have reported the issue above) that the RTF jumps to very small values every now and then.

image

I believe the large amount of data that is being sent from the server side is causing this issue.

@cesarcarc cesarcarc changed the title Flickering data on plots Flickering data on plots [client] May 18, 2020
@cesarcarc cesarcarc transferred this issue from another repository May 18, 2020
@cesarcarc cesarcarc added bug Something isn't working client labels May 18, 2020
@eidekrist
Copy link
Member

This is caused by two threads interacting with the same data source simultaneously:

  • libcosim inserts data (fast)
  • the server extracts data (slow)

For each cycle of the trend loop, for each trended variable, the server figures out for which timespan to extract data for, extracts the data, changes its format and then stores it. In-between each of these steps libcosim may store a multitude of values for the next variable to extract data for.

A solution could be to block the propagation of the simulation while the server's trend loop collects data, but this would prioritize getting trend data over driving the simulation forwards.

@eidekrist
Copy link
Member

I am not sure it is connected, but I have observed (after I have reported the issue above) that the RTF jumps to very small values every now and then.

It can certainly be provoked by extracting large amounts of trend data, but the root cause is something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client
Projects
None yet
Development

No branches or pull requests

2 participants