Jump to content
  • 0

b'Devices are busy, used by other applications\n' in Discovery 2 Python 3 SDK Raspberry Pi Linux


leboVegitaJA17

Question

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):

image.png.2cec538394dbd0e9ae8e2207ba15e6d6.png

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?

Edited by leboVegitaJA17
specified python and serial cable
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...