chuqdd Posted May 29 Share Posted May 29 as title Link to comment Share on other sites More sharing options...
0 JColvin Posted May 29 Share Posted May 29 Hi @chuqdd, You can use FDwfEnum to enumerate all of the devices and see if a device you are previously using is still listed. Or if you are wanting to check if a known device is has already been opened, I would probably use FDwfEnumDeviceIsOpened. You might also find the Device_Enumeration.py example helpful. Let me know if you have any questions. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 chuqdd Posted May 29 Author Share Posted May 29 Thank you! Link to comment Share on other sites More sharing options...
0 attila Posted May 30 Share Posted May 30 Hi @chuqdd The enumeration may not detect device disconnect immediately if there is software connection to it, due to global cached information. If your software is connected to the device, check the return value of any function that communicates with this, like FDwfAnalogIOStatus. If this is zero use FDwfGetLastErrorMsg for details and call FDwfDeviceClose to allow cached information to be update. Link to comment Share on other sites More sharing options...
Question
chuqdd
as title
Link to comment
Share on other sites
3 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