Danny Cote Posted February 1 Share Posted February 1 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 More sharing options...
0 JColvin Posted February 2 Share Posted February 2 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 More sharing options...
0 attila Posted February 5 Share Posted February 5 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 More sharing options...
0 Danny Cote Posted February 7 Author Share Posted February 7 (edited) 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 February 7 by Danny Cote Link to comment Share on other sites More sharing options...
0 attila Posted February 7 Share Posted February 7 Hi @Danny Cote You could use the killapp argument for safe close. $ waveforms -killapp Danny Cote 1 Link to comment Share on other sites More sharing options...
Question
Danny Cote
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now