Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Code issue with time remaining loop. Python3
Post: RE: Code issue with time remaining loop. Python3

was able to get it with starting it as a thread and then if it receives 0 it kills itself off
deboerdn2000 General Coding Help 11 8,871 May-04-2017, 04:53 PM
    Thread: Code issue with time remaining loop. Python3
Post: RE: Code issue with time remaining loop. Python3

import time from multiprocessing import Queue, Process from queue import Empty   def cleancycle(clean,seconds):     msgqueue=Queue()     ctr=Process(target=timeremaining,args=(seconds,msgqueue))     c...
deboerdn2000 General Coding Help 11 8,871 May-04-2017, 04:00 PM
    Thread: Code issue with time remaining loop. Python3
Post: RE: Code issue with time remaining loop. Python3

well sorted that issue out. for some reason it works fine on python 3.4 on my raspberry pi but not 3.6 on windows  pi2: '3.4.2 (default, Oct 19 2014, 13:31:11) \n[GCC 4.9.1]' windows 7: '3.6.0 (v3.6....
deboerdn2000 General Coding Help 11 8,871 May-04-2017, 02:28 PM
    Thread: Code issue with time remaining loop. Python3
Post: RE: Code issue with time remaining loop. Python3

it looks like that works fine. i extended the code into my main program but is giving me issues still. import time import multiprocessing import queue   def cleancycle(clean,seconds):     msgqueue=mu...
deboerdn2000 General Coding Help 11 8,871 May-03-2017, 11:00 PM
    Thread: Code issue with time remaining loop. Python3
Post: RE: Code issue with time remaining loop. Python3

thats interesting. i ran it on the raspberry pi with python 3.4 just fine but doesnt seem to run when i test it on windows. wonder if thats part of my issue. any idea's on how to fix that?
deboerdn2000 General Coding Help 11 8,871 May-03-2017, 08:29 PM
    Thread: Code issue with time remaining loop. Python3
Post: queue not passing updated message

so I have an issue. my queue isn't passing my updated message. My expected behaviour is it stops print time remaining after approx 10seconds. the actual behaviour is it continues printing time remaini...
deboerdn2000 General Coding Help 11 8,871 May-03-2017, 07:59 PM
    Thread: Code issue with time remaining loop. Python3
Post: Code issue with time remaining loop. Python3

So I have an issue. im running a timer to turn a gpio port on and need to return a time stamp over rs232. I have the rs232 outputting just fine in its own function but the issue I am facing is that I ...
deboerdn2000 General Coding Help 11 8,871 May-03-2017, 03:57 PM

User Panel Messages

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