at a glance the code looks reasonable. First of all, does it run in real time if you don't send anything to the serial port, but just run the script with printing only? At least that should be possible. This helps you to narrow down if the issue is in the thing in general, or in the serial write routine. Note also that probably not all process() calls should write to the serial port, but only when it has some stimulations pending. Based on the tabbing I see, you write each time.
Afaik the process() function is likely to be called repeatedly even if there were no stimulations to process, so you'll need to check (those ifs there might do).
About BCI and box tutorial/demo scenarios bundled with OpenViBE.
1 post • Page 1 of 1