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

[Question] Keep sincronization with data generated at different rate #8

Open
torydebra opened this issue Mar 12, 2021 · 3 comments
Open

Comments

@torydebra
Copy link
Member

torydebra commented Mar 12, 2021

Hi,

I have some data A that is generated at each loop
Then I have another data B that sometimes is not generated

So, if I log data B only when it is generated, I loose the time syncronization with data A, because B will have less columns (where the "time" is) and I can not understand which column B generated at loop X correspond to the column of A generated at the same loop X

A solution can be to generated always also B data, putting zeros as value when I do not have values.

Have you used different approaches? @liesrock @alaurenzi ?

@liesrock
Copy link

if you log the "real" time and you plot A and B w.r.t time you have A and B synchronized even if they do not have the same dimension.

@alaurenzi
Copy link
Collaborator

Yes, recording separate timestamps for both series is an option. You can try (I have never done it) to record NaNs instead of zeros, so that matlab won't show them in the plot.

@torydebra
Copy link
Member Author

So,

  • I would need a timestamp for each "not always available" variables plus one timestamp for all the "always available" ones
  • Log everything adding NaN or some "invalid" value

Is there the possibility in the future to have timestamps directly integrated in the logged variable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants