Page 1 of 1
Simple FilterChain question
Posted: 22 Oct 2010, 16:32
Im working with an amplifier that feeds me with 128 channels without allowing me to select what comes in.
I tried to change the SignalSourceFilterChain to place the TransmissionFilter before all the file writers in the prm file.
However, when i look at the recorded data via the BCIViewer, i see all channels.
Shouldnt the TransmissonFilter cut down to the desiredchannels before the file writing then?
Any better idea?
Thanks a lot in advance, looking forward to seeing yall at SFN2k10
Posted: 25 Oct 2010, 08:32
FilterChain parameters are read-only, and cannot be used to change the filter chain in a module.
What you will need to do is to modify the ADC filter such that it returns only a subset of channels in its output signal.
Posted: 25 Oct 2010, 18:17
i guess i got confused because when i change manually the order of the filter chain before recording, then i can actually run the experiment, and when i look at the data using the viewer, it remains as i wrote it.
i will then write a built-in filter to the acquisition module, as you advised.
Posted: 28 Oct 2010, 20:02
Ok, now i am really confused.
I thought later that if i changed the filterchain in the source code, then it should work.
So i changed the RegisterFilter call to all filewriters to 1.9 while the transmission filter is set to 1.2
After recompiling BCI2k 3.0, i still see all channels in the data.
Wouldnt hard coding the filterchain this way leave only the requested channels in the data?
Posted: 29 Oct 2010, 09:01
No, FileWriter filters are always treated as sub-filters of the DataIOFilter, which uses them to write raw data to the current data file. The actual filter chain only contains the DataIOFilter, the AlignmentFilter, and the TransmissionFilter. Raw data is received from the ADC filter, and written to disk within the DataIOFilter, so there is no way to change the number of channels written to disk without modifying the ADC filter.
Posted: 29 Oct 2010, 10:54
Oh ok now i understand,
Ill just implement my own transmission filter in the ADC then.