Giter Site home page Giter Site logo

Comments (8)

armwal avatar armwal commented on August 12, 2024

Hi Gerco,

this depends on your use case... There are two hardware filters on the MEA2100, one on the headstage that can be used to filter the acquired electrode data, and one on the IFB that filters the datastream to the DSP. Let me know which one you want to use and we can send you some example code.

Kind regards
Armin

from mcsusbnet_examples.

gchassink avatar gchassink commented on August 12, 2024

from mcsusbnet_examples.

armwal avatar armwal commented on August 12, 2024

Hi Gerco,

actually both filters are digital filters and are applied after analog-digital conversion. The DSP only come into play if you are interested in real-time feedback experiments, so I think changing the (digital) filter on the headstage is what you want to do. The recommended way to do this is with our MCS Filter Config Tool: https://www.multichannelsystems.com/software/mcs-filter-config

This tool sets Butterworth low pass filters and Bessel high pass filters for the headstage. Would this be sufficient for you?

Kind regards
Armin

from mcsusbnet_examples.

gchassink avatar gchassink commented on August 12, 2024

from mcsusbnet_examples.

armwal avatar armwal commented on August 12, 2024

Hi Gerco,

correct, filters are set on the firmware level and typically not reset when a software closes, so they stick around until you reboot the device.

you can use the GetFilterProperties function of the CMcsUsbDacqNet class to retrieve the current filter settings. Typically, you would invoke this from the meaDevice object that you are using for data acquisition:

filters = meaDevice.GetFilterProperties(Mcs.Usb.DacqGroupChannelEnumNet.HeadstageElectrodeGroup);

This returns an array of CFilterPropertyNet objects that describe the headstage filters for the electrode data. You can read out other filters using other entries of the DacqGroupChannelEnumNet enum.

Kind regards,
Armin

from mcsusbnet_examples.

gchassink avatar gchassink commented on August 12, 2024

from mcsusbnet_examples.

armwal avatar armwal commented on August 12, 2024

Hi Gerco,

thanks for bringing this up! We've had a closer look at the code of the McsFilterConfig tool because this behaviour doesn't sound correct, and there is indeed a bug in the tool!

Currently, when you set a lowpass filter with the Filter Config tool, it creates filter coefficients for a Bessel filter and writes them to the firmware, but it labels it as a Butterworth filter. So the lowpass filter is always a Bessel filter, but it's got the wrong name and identifies as a Butterworth filter. Fortunately this is only cosmetic, because only the coefficients are relevant for the actual filtering.

Please ignore the "Butterworth" label at the moment when you use the Filter Config tool, this is wrong and we are working on an update for the tool that fixes this in the near future.

Kind regards and thanks!
Armin

from mcsusbnet_examples.

gchassink avatar gchassink commented on August 12, 2024

from mcsusbnet_examples.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.