I have develloped an acquisition module for TMSi device called Refa8. In oder to do so, I applied the following procedure:
- * Download Borland
* Token the bci2000 sources with SVN
* Create a new Refa Directory and place the RandomNumber Project (*.cpp *ADC.cpp *ADC.h properly renamed as refa.cpp refaADC.cpp refaADC.h)
* Inserted the home-made TMSiLib.h and TMSiLib.cpp with the three TMSiStrat() TMSiStop() and TMSiWaitForData() function, as required in the wiki. All those functions have been tested.
* Compile everythink from bci2000.bdsgroup in Borland
Code: Select all
13/07/2007 14:33:45 - DataIOFilter::Preflight: Expected an ADC filter instance to be present.
13/07/2007 14:33:45 - TransmissionFilter: A necessary condition is violated. Please make sure
that the following is true: Parameter( "SoftwareCh" ) <= InputProperties.Channels().Code: Select all
Source:DataIOFilter int SoftwareCh= 32 16 1 128
Source:DataIOFilter int SampleBlockSize= 8 5 1 128
Source:DataIOFilter int SamplingRate= 128 128 1 4000
Source:DataIOFilter list ChannelNames= 32 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Source:TransmissionFilter int TransmitCh= 4 4 1 128
Source:TransmissionFilter intlist TransmitChList= 32 6 7 8 9 1 1 128
Code: Select all
Source:DataIOFilter int SoftwareCh= 32
Source:DataIOFilter int SampleBlockSize= 8
Source:DataIOFilter int SamplingRate= 128
Source:DataIOFilter list ChannelNames= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Source:TransmissionFilter int TransmitCh= 4
Source:TransmissionFilter intlist TransmitChList= 6 7 8 9
Code: Select all
BEGIN_PARAMETER_DEFINITIONS
"Source int SourceCh= 32 64 128 "
"// this is the number of digitized channels",
"Source int SampleBlockSize= 16 5 1 128 "
"// this is the number of samples transmitted at a time",
"Source int SamplingRate= 128 128 1 4000 "
"// this is the sample rate",
END_PARAMETER_DEFINITIONS
In order to understand how it worked, I launch the operat. exe without the Refa.exe which I used from Borland Debugger: the point is I was unable to place a Stop-point at this point (in the creator Refa::RefaADC() ).
The questions are:
- * Could you give me some pointers to understand better how does this PARAMETERS_DEFINITION works. (For exemple, I imagine I can get the channels names from the device and put them to BCI2k)
* Is there a better way to debug the acquisition module (Is there any fault in the way I do?)
Thanks
Louis
