Hello,
I am having a problem with: b'Devices are busy, used by other applications\n' error triggered by these lines of code in the Python SDK software samples:
if hdwf.value == hdwfNone.value:
szError = create_string_buffer(512)
dwf.FDwfGetLastErrorMsg(szError);
print("failed to open device\n"+str(szError.value))
quit()
This is the output:
python3 AnalogIn_Trigger.py
DWF Version: b'3.19.5'
Opening first device
failed to open device
b'Devices are busy, used by other applications\n'
The error occurs regardless of which Python script I run from the sample folder and persists after I close all instances of the Waveforms application
It is worth noting that the primary waveforms app on my device shows a similar error (Used by other application):
But it can be run if I use the Force Programming option.
When I look the processes in use, this process keeps coming up no matter how many times I try to kill it:
Process 78 on ps -e:
78 ? 00:00:00 DWC Notificatio
I ruled out the serial port and usb cable being the cause for the error.
Is there a way to use the 'Force Programming' Option in my python script to make it run and bypass the error above? Also, is there any reason why the Waveforms SDK keeps thinking I have another instance of waveforms running although I have explicitly closed out of them? If so, how do I solve this issue?