Bases: object
Methods
transition(transition) |
Bases: exceptions.Exception
Bases: libmushu.amplifier.Amplifier
Methods
calculate_impedance(u_measured[, u_applied]) | |
configure(**kwargs) | Configure the amplifier. |
get_channels() | |
get_data() | Get data. |
get_sampling_frequency() | Return the sampling frequency. |
is_available() | |
set_calibration_mode(mode) | |
set_common_ground([a, b, c, d]) | Set common ground for the electrodes. |
set_common_reference([a, b, c, d]) | Set common reference for the electrodes. |
set_mode(mode) | Set mode, ‘impedance’, ‘data’. |
set_sampling_ferquency(fs, channels, ...) | Set the sampling frequency and filters for individual channels. |
set_slave_mode(slave) | Set amp into slave or master mode. |
start() | |
stop() |
Set common ground for the electrodes.
Set common reference for the electrodes.
Set the sampling frequency and filters for individual channels.
Parameters: fs – sampling frequency channels – list of booleans: channels[0] == True: enable filter for channel 0 bpfilter – tuple: parameters for the band pass filter (hp, lp, fs, order) or None notchfilter – tuple: parameters for the band stop filter (hp, lp, fs, order) or None
Bases: libmushu.amplifier.Amplifier
An amplifier that produces random data.
Methods
configure(fs, channels) | |
get_channels() | |
get_data() | |
get_sampling_frequency() | |
is_available() | |
start() | |
stop() | Stop the amplifier. |
Bases: libmushu.amplifier.Amplifier
Methods
configure(data, marker, channels, fs[, ...]) |
|
||
get_channels() | |||
get_data() |
|
||
get_sampling_frequency() | |||
is_available() | |||
start() | |||
stop() |
Parameters: | data : marker : channels : fs : realtime : blocksize_ms : float
blocksize_samples : int
|
---|---|
Raises: | TypeError : :
|
Bases: libmushu.amplifier.Amplifier
An amplifier that produces sinus data.
Methods
configure(f, fs, channels) | |
get_channels() | |
get_data() | |
get_sampling_frequency() | |
is_available() | |
start() | Make the amplifier ready for delivering data. |
stop() | Stop the amplifier. |
This package contains the low-level drivers for various amplifiers.
As a user, you’ll probably not deal with them directly but with their decorated counterparts via libmushu.__init__.get_amp().
If you want to use the low level drivers directly you can use it like this:
from libmushu.driver.randomamp import RandomAmp
amp = RandomAmp()
TODO: Add a ‘writing your own drivers’ section or tutorial.