I am trying to run two functions in parallel so that they will plot a real-time graph at the same time. My code looks like:
[EEGfilt, EMGfiltNormal, t] = OpenBCIfunction(tf);
disp('Flex Sensor start');
[R_f0, R_f1, R_f2, R_f4, R_f5, t] = Glovefunction(tf);
When I run the code, I get the command window to display "OpenBCI start" and "Flex Sensor start". However, I never get a graph to show up and right after "Flex Sensor start" I recieve this message in the command window.
Caught "std::exception" Exception message is:
Error using OpenBCI_Glove_Parallel (line 9)
How do I fix this so I can get these two functions to run in parallel and output individual live graphs? (The graphs are being plotted within the functions.)