All Questions
6 questions
0
votes
1
answer
85
views
Threads not executing concurrently
I am working with a simple Python script that controls a sensor and reads measurements from this sensor. I want to take different measurement types concurrently, the function below can be used for ...
0
votes
3
answers
1k
views
How to start, stop, and restart a thread?
Fairly new to Python; working on a Raspberry Pi 4 with Python 3.4.3.
Got a code working to listen for 2 distinct alarms in my lab - one for a -80 freezer getting too warm, and the other for a -20 ...
0
votes
1
answer
154
views
Very Slow Binary File Download in Multithreaded Python Program on Raspberry Pi
I'm writing a multi-threaded Python application on a Raspberry Pi 4 that occasionally needs to download binary files on the order of ~200 kilobytes from a server, which during testing is my laptop on ...
1
vote
1
answer
420
views
Python Threading - argument must be an int, or have a fileno() method
When I execute the code below on a Raspberry Pi, it mostly works and prints Light and Motion detection messages when it should, but mixed in the output I keep getting this error:
argument must be an ...
2
votes
1
answer
959
views
Why does Python launch many processes while using threading
I wrote a Python program that uses threading.Thread classes. Around 25 threads are launched. It is running on a Raspberry Pi 4 (4 cores).
I was thinking that only 1 Python process would be launched ...
0
votes
1
answer
183
views
Led and buzzer at the same time in python is it not possible?
I am trying to get the buzzer and led to go off at the same time? I am new to python. Is it really not possible?
def Alarm():
GPIO.output(GPIO_ALARM, GPIO.HIGH)
time.sleep(0.05)
GPIO.output(...