Jump to content
  • 0

Need to kill waveform from an external application but device still in use


Danny Cote

Question

Need to kill Waveform and free device to allow usage by my python script
When I try to do that I am able to close/kill Waveform but device still in use and not available to an other application.
Is there a way to do that?

Regards

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi @Danny Cote,

The most consistent way, of course, would be to power cycle the device. Which device and what version of WaveForms are you using?

Normally, when you close the WaveForms GUI, the device (more or less) becomes immediately available to use in a separate application or script.

Thanks,
JColvin

Link to comment
Share on other sites

  • 0

Hi @Danny Cote

Do not kill but close the application or select a demo device.

A device can be controlled by one application at a time.

Some device information are not available when it is opened by another app, so a shared memory info table is used. Killing or crashing an app the used device can remain flagged being busy. In this case close all the apps that use Digital Adept Runtime (WaveForms app, custom app which uses WF)

Link to comment
Share on other sites

  • 0

I have to do this programmatically, context is that Digilent device can be used by physical user throught the GUI and forget to close the GUI after their debug session.  After that I have an automated process(started by a regression server like Jenkins) that will try to use the device locked by Waveform so regression will fail

By the way, I found a workaround that seems stable (I have started the test in loop several times without any issues)

Workaround is:

-Try to open Digilent device

  • -Catch error when device is busy

-Disable Digilent device using pnputil

-Kill Waveform using taskkill

-Enable Digilent device using pnputil

-Open Digilent device 

Regards 
Danny

 

Edited by Danny Cote
Link to comment
Share on other sites

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...