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

Tracer real-time for double/int/(more?) #61

Open
MaximilienNaveau opened this issue Feb 10, 2020 · 3 comments
Open

Tracer real-time for double/int/(more?) #61

MaximilienNaveau opened this issue Feb 10, 2020 · 3 comments

Comments

@MaximilienNaveau
Copy link

What I noticed:

I noticed that upon tracing a signal of type int or double the output file contains extra endline character.

For example:

1	1

2	1

3	1

Where the first column is the time and the second column is the data.

Potential Solution:

I suspect the tracer to dump an extra end line upon writing data that are not Eigen::Matrix.
I did not look at the tracer code yet.

@MaximilienNaveau MaximilienNaveau added Cleaning Clean code and removed Cleaning Clean code labels Feb 10, 2020
@jmirabel
Copy link
Contributor

For the log, the two functions adding a new line are Tracer::recordSignal and DefaultCastRegister::disp.

@jmirabel
Copy link
Contributor

Moreover, Eigen vectors are written as in column and not in row.

@olivier-stasse
Copy link
Member

olivier-stasse commented May 21, 2020

Dear Maximilien,
Sorry again for the time taken, but right now, the real time tracer is recording information according to

Tracer::recordSignal(file, sig);

therefore it follows the tracer format specified by
os << sig.getTime() << "\t";

So the added information is the time.
Could you propose another mechanism if the format does not suits you ?

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