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

Computed channels #18

Open
romainbrette opened this issue Mar 19, 2019 · 0 comments
Open

Computed channels #18

romainbrette opened this issue Mar 19, 2019 · 0 comments
Assignees

Comments

@romainbrette
Copy link
Owner

It would be interesting to allow for signals that can be computed on the basis of other signals. I'm thinking typically about electrode compensation. We would set it with something like:

board.set_computed_channel('V_AEC',function = AEC_compensate)

And when board.acquire is called, the functions of computed channels are called to get the computed signals.

This could also be built into the Board class (AEC, bridge etc), but maybe that's a bit messy.
Perhaps a class of computed channels. Then you would do:

AEC_compensation = AEC(board, 'V', 'I')
AEC_compensation.kernel_size = 10*ms
board.set_computed_channel('V_AEC', function = AEC_compensation)

And when board.acquire is called, AEC_compensation is called with the same arguments, and returns the computed signal. Then we could do:

AEC_compensation.calibrate()

@romainbrette romainbrette self-assigned this Mar 19, 2019
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

1 participant