Page 1 of 1

Re: Python script to send data on serial port

Posted: Fri Dec 11, 2015 8:30 am
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