Jump to content
  • 0

Any API function to query if discovery box is still connected or disconnected?


chuqdd

Question

3 answers to this question

Recommended Posts

  • 0

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

  • 0

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

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