Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwf.Device().open() stalls when called in a multiprocessing subprocess #8

Open
felixFleetZero opened this issue Dec 4, 2024 · 1 comment

Comments

@felixFleetZero
Copy link

Had a software running the latest version of pydwf using multiprocessing with one of the sub-process managing an Analog Discovery 2 USB interface to do analog input measurement on one channel.
The expected behaviour was working then, which is that this sub-process was managing the measurement from that instrument, while others managed measurement from other instruments in parallel.
As the pydwf package is now removed from Github and future support seems discontinued, tried to replace it with dwfpy.

After updating the class that was using pydwf as its low-level interface, it seems to work as expected when used on its own (in a main of a single process).
However, as soon as it's used in its intended multiprocessing subprocess as before, it doesn't show the same behaviour.
The subprocess seems stuck to infinity in the dwf.Device().open() function call.
Note that the start method is "fork".
Running on Python 3.11.2, digilent.waveforms_3.22.2_arm64, and digilent.adept.runtime_2.27.9-arm64 on a raspberry pi 4.

Any insight on why this could be know that nothing else changed apart from transitioning from pydwf to dwfpy?

@mariusgreuel
Copy link
Owner

As dwfpy is merely a wrapper, my best guess is that it is not related to the dwfpy library but the waveforms library used below. It sound strange when you mention that it worked with a different wrapper. Out of the top of my head, I do not have any ideas what might be wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants