Python script to send data on serial port

About BCI and box tutorial/demo scenarios bundled with OpenViBE.
Post Reply
jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: Python script to send data on serial port

Post by jtlindgren »

Hello Satya,

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).


Cheers,
Jussi

Post Reply