Multiple attempts required to open VINT device
Posted: Sun Mar 03, 2019 9:07 am
I am using code based mostly on the VoltageRatio example. But, adapted for the DAQ1500 and a 3133 load cell connected to a HUB0000. In general the code works. However, If I kill the code (I just added a wait for a Return after the open) and let the code run to the end, with a close(), I must try several times before I can get the code to properly load again. It always follows this progression...
First attempt throws multiple resource busy errors and then Timed Out errors before diving.
The next attempt succeeds in attaching the HUB but then throws errors in the onAttach handlerThe third attempt usually succeeds.
It seems like the HUB or the Phidget22 server (an SBC3) is too busy to complete the initial open and attach event. But, I haven't been able to track down the source of the problem, I would appreciate any thoughts on eliminating the source of the problem, or, handling the errors in a better manner to try and overcome the problem.
Thanks
First attempt throws multiple resource busy errors and then Timed Out errors before diving.
The next attempt succeeds in attaching the HUB but then throws errors in the onAttach handler
Code: Select all
Desc: Invalid Argument
Traceback (most recent call last):
File "mailscale.py", line 66, in onAttachHandler
ph.setDataInterval(dataInterval)
File "/Library/Python/2.7/site-packages/Phidget22/Devices/VoltageRatioInput.py", line 175, in setDataInterval
raise PhidgetException(result)
PhidgetException
It seems like the HUB or the Phidget22 server (an SBC3) is too busy to complete the initial open and attach event. But, I haven't been able to track down the source of the problem, I would appreciate any thoughts on eliminating the source of the problem, or, handling the errors in a better manner to try and overcome the problem.
Thanks