Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Updating a list with multiprocessing
Post: RE: Updating a list with multiprocessing

This question was not very well formulated, especially with the code edits, and I don't blame anyone for not attempting a reply. I rewrote the question, and found a solution here
bRitch022 General Coding Help 1 2,405 Jul-15-2020, 07:06 PM
    Thread: Wait for command within a process
Post: RE: Wait for command within a process

Solution: multiprocessing disables the stdin when it starts a process, therefore input() cannot be used. https://stackoverflow.com/questions/4283...ing-a-line Quote:The multiprocessing module doesn't...
bRitch022 General Coding Help 1 3,254 Jul-15-2020, 07:03 PM
    Thread: Wait for command within a process
Post: Wait for command within a process

I'm attempting to set up a process which listens for commands. Eventually this will be implemented with TCP/UDP and MODBUS, but for now I am trying to get it to work from within a process. The syntax ...
bRitch022 General Coding Help 1 3,254 Jul-09-2020, 07:34 PM
    Thread: How to pass a list by value for manipulation within a process?
Post: RE: How to pass a list by value for manipulation w...

I was able to resolve this issue by getting rid of the numpy.zeroes array, and instead using the multiprocessing.Array datatype. In this way, all the separate processes were able to access and modify ...
bRitch022 General Coding Help 4 2,725 Jul-09-2020, 07:13 PM
    Thread: How to pass a list by value for manipulation within a process?
Post: RE: How to pass a list by value for manipulation w...

(Jun-22-2020, 07:52 PM)bowlofred Wrote: Your title says "within a process", but your body looks like you're trying to share it between multiple processes.Yes, you are correct, I am trying to share t...
bRitch022 General Coding Help 4 2,725 Jun-22-2020, 07:56 PM
    Thread: How to pass a list by value for manipulation within a process?
Post: How to pass a list by value for manipulation withi...

I am attempting to update a list that lives in an object that I have named Registry. This list is named Registry.registry, and it is a numpy.zeros list. A process calls the list, and attempts to write...
bRitch022 General Coding Help 4 2,725 Jun-22-2020, 07:08 PM
    Thread: Updating a list with multiprocessing
Post: Updating a list with multiprocessing

I am writing a program to control a machine, and this machine needs to have a central registry to keep track of all parameters about the machine (Inputs/outputs, configuration values, etc.). I've set ...
bRitch022 General Coding Help 1 2,405 Jun-16-2020, 08:09 PM

User Panel Messages

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