We have been using the FrontPanel API on 32-bit Linux for maybe 10 years now. We are porting to 64-bit (Ubuntu 18.04LTS). While there was a delay when bringing up our software (maybe 8 seconds) in GetDeviceCount(). We now hang for about 20 seconds!
We use this call to determine if any hardware is connected. If so we open the device we found. However, 20secs startup time is not acceptable. We are using 5.0.2 and tried with our older XEM 6010 boards as well as with our newer platform XEM 7310. The both have the same delay. On 32-bit Linux we have 8secs (while not ideal we can probably deal with it). On Windows 10 there is no noticable delay (fracions of a second).
Any idea why this function would block for so long and any workaround?
What we need to do is this: We first check if there is a device attached, if not we launch without hardware (test mode). IF the user configured a Device ID we check if among the found devices we have the Device ID, if so we open the device, if not we error out. If the user didn’t specify a device ID we grab the first device we found and open that.
If there is a way to figure this out without using GetDeviceCount() please advise.