Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: reading raw data until condition is met, then stopping
Post: RE: reading raw data until condition is met, then ...

unknowntothem, Yes, when the second loop is complete and the adcx sensor is below 840, the first 'while' will continue to run and it will open the file again and write for 5 seconds. When the second ...
ikejima General Coding Help 7 4,158 Sep-26-2018, 04:42 PM
    Thread: reading raw data until condition is met, then stopping
Post: RE: reading raw data until condition is met, then ...

Do you want to clear the file (/home/pi/data_log.csv) every 5 seconds and start write to the same file ? file = open("/home/pi/data_log.csv", "a") -> the second parameter is mode, try use w 'w...
ikejima General Coding Help 7 4,158 Sep-25-2018, 04:51 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020