Re: [Tutor] Write Data to Multiple Files

2017-04-19 Thread Alan Gauld via Tutor
On 19/04/17 11:35, Mohanad Ismail via Tutor wrote: > Read data from serial and write to file 1 for 15 sec, > after the 15 seconds continue writing the data on to > file 2 for 15 seconds >... each file should write for 15 seconds and stop for 15 seconds > Code: > #!/usr/bin/env python > from date

[Tutor] Write Data to Multiple Files

2017-04-19 Thread Mohanad Ismail via Tutor
Hello, I have recently started using python and i have come to a halt while writing a code and i was hoping someone out there can help me. I am attempting to store a stream of data directly from a serial port onto multiple files in sequence after x amount of time is elapsed. for example : Read da