Troubles with Online Signal Processing
Posted: 26 Dec 2011, 11:48
Hello all,
We are having issues in the lab I work in with properly setting up the MATLAB filter code for online signal processing. A lot of the problem seems to be coming from duplicate or missing MATLAB files. We used the general form of MATLAB codes for bci_Prerun, bci_Initialize, bci_Process, etc. found on BCI2000 Wiki and then tailored this code to give us the exact processing of the data we require for our purposes of running the Cursor Task module using the Signal Processing module. However, we are receiving several errors. For instance, bci_Initialize would not run until we moved the "compiler" folder out of the MATLAB toolbox because of some apparent conflict. Once that was done, bci_Process produced errors while running, such as: 'Undefined function of variable "eml_transient,"' and 'Undefined function or variable "eml_allow_enum_inputs."' It seems that the MATLAB engine launched with the Signal Processing module is trying to access these "eml" functions instead of the built in MATLAB functions and this is giving us errors because we don't seem to have the "eml" functions on our computer. Could this be an issue with a path setting, or are these "eml" files something we are supposed to have somewhere? I appreciate any help or ideas that anyone can offer!
On a side note, we did a run where we changed bci_Process to essentially do nothing so as not to raise the undefined variable errors, and we got the Cursor Task module started. We didn't have any electrodes hooked up to our amp, and the ball was steadily drifting right. However, after a short time, an error occurred stating "round trip time exceeds block duration." This gave us concern seeing as it happened when we essentially had no signal processing actually taking place. Does this seem like it will be an issue?
Thanks in advance!
-Luke
We are having issues in the lab I work in with properly setting up the MATLAB filter code for online signal processing. A lot of the problem seems to be coming from duplicate or missing MATLAB files. We used the general form of MATLAB codes for bci_Prerun, bci_Initialize, bci_Process, etc. found on BCI2000 Wiki and then tailored this code to give us the exact processing of the data we require for our purposes of running the Cursor Task module using the Signal Processing module. However, we are receiving several errors. For instance, bci_Initialize would not run until we moved the "compiler" folder out of the MATLAB toolbox because of some apparent conflict. Once that was done, bci_Process produced errors while running, such as: 'Undefined function of variable "eml_transient,"' and 'Undefined function or variable "eml_allow_enum_inputs."' It seems that the MATLAB engine launched with the Signal Processing module is trying to access these "eml" functions instead of the built in MATLAB functions and this is giving us errors because we don't seem to have the "eml" functions on our computer. Could this be an issue with a path setting, or are these "eml" files something we are supposed to have somewhere? I appreciate any help or ideas that anyone can offer!
On a side note, we did a run where we changed bci_Process to essentially do nothing so as not to raise the undefined variable errors, and we got the Cursor Task module started. We didn't have any electrodes hooked up to our amp, and the ball was steadily drifting right. However, after a short time, an error occurred stating "round trip time exceeds block duration." This gave us concern seeing as it happened when we essentially had no signal processing actually taking place. Does this seem like it will be an issue?
Thanks in advance!
-Luke