I have 3 Digital Discoveries all connected to various Windows 10 PCs and using the WaveformsSDK via Python API.
On 2 out of 3 setups, when I run the Device_Enumeration.py example provided, it completes in ~0.3 sec.
On the 3rd setup, it takes about 6 sec to enumerate the device.
Question
JeffD
Hello,
I have 3 Digital Discoveries all connected to various Windows 10 PCs and using the WaveformsSDK via Python API.
On 2 out of 3 setups, when I run the Device_Enumeration.py example provided, it completes in ~0.3 sec.
On the 3rd setup, it takes about 6 sec to enumerate the device.
cmd /c python -m cProfile "C:\Program Files (x86)\Digilent\WaveFormsSDK\samples\py\Device_Enumeration.py"
1 6.136 6.136 6.151 6.151 Device_Enumeration.py:1(<module>)
This also holds true when trying to connect to a device automatically via:
self.hdwf = c_int()
self.dwf.FDwfDeviceOpen(c_int(-1), byref(self.hdwf))
This takes ~12 sec total, 6 for enumeration and 6 to connect to the first device. Again, it only affects 1 out of our 3 setups.
Any idea what could be causing this slow enumeration? It is a major runtime hit to add ~12 seconds to an otherwise 1second script.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.