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

Implement IO-Test for the MOM Operation #9

Open
lumip opened this issue Mar 16, 2015 · 7 comments
Open

Implement IO-Test for the MOM Operation #9

lumip opened this issue Mar 16, 2015 · 7 comments

Comments

@lumip
Copy link

lumip commented Mar 16, 2015

The DAC driver offers an operation to obtain the raw moment of the downsampled data.
Tests for this operation for different orders of this moment should be implemented.

@pbethke
Copy link

pbethke commented Mar 16, 2015

We should be able to write "offline" tests for this, testing only the moment calculation, provided raw io works. The reason we don't have that in down sampling and repetitive signal averaging is to test the measurement windows (masks) which raw io doesn't have

@lumip
Copy link
Author

lumip commented Mar 16, 2015

As far as I know, the DAC-C-library performs this operations directly on the data obtained from the acquisition card. An offline test would require the library to perform the operations on data input via software. Or am I misunderstanding you here?

@pbethke
Copy link

pbethke commented Mar 16, 2015

No, you are right. I'll have a look at the C source tomorrow and check wether it is isolated enough to test on its own

@lumip
Copy link
Author

lumip commented Mar 16, 2015

Maybe this could be realized as a unit test in the C(++) project. Then the library needs not to expose methods to perform operations on software input and the test would not have to bother with setting up the hardware...

@pbethke
Copy link

pbethke commented Mar 17, 2015

That is exactly what i was thinking about. as long as downsampling and the different mask types work (with the hardware), the processing could be tested individually in C++.

summoning @terrorfisch: What do you think

@lumip
Copy link
Author

lumip commented Mar 17, 2015

Hmm, if we take that thought one step further, downsampling and repetitive signal averaging should also be testable (?) in the C++ project, if they are not too tightly coupled to the hardware input..

@pbethke
Copy link

pbethke commented Mar 20, 2015

@terrorfisch has started writing tests for the data acquisition driver.

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

2 participants