Phidget22, Attaching to DO device
Posted: Tue Jul 20, 2021 3:33 am
It seems the same client instance can only open a given Digital Output channel once at a time. A second attempt to attach the same device fails with a message like:
I also noted that if I try to open the device in another mode, it fails with an appropriate message:
Thanks
- PhidgetException: PhidgetException 0x34 (Device not Attached)
This can happen for a number of common reasons. Be sure you are opening the channel before trying to use it. If you are opening the channel, the program may not be waiting for the channel to be attached. If possible use openWaitForAttachment. Otherwise, be sure to check the Attached property of the channel before trying to use it.
I also noted that if I try to open the device in another mode, it fails with an appropriate message:
- PhidgetException: PhidgetException 0x09 (Resource Busy)
Open was called on a port twice with different port modes. This is not allowed unless hub serial numbers or labels are different.
Thanks