I was using an absolute pressure sensor on channel 0 until the latest firmware update from Phidget and now channel 0 always says it is already open when I run in debug and try to attach the sensor. I've tried rebooting, shutting down the control panel, all that stuff, but it's still showing the following when I try to open the channel after an attach event on channel 0:
Failed to open Channel <PhidgetVoltageRatioInput> on local device: <VOLTAGERATIOINPUT_PORT (Hub Port - Voltage Ratio Mode) v100 -> HUB0000 Port:0 S/N:636524> because Channel: <VINT Hub Ch:0 -> HUB0000 S/N:636524> is opened on the same Hub Port, and these channels are mutually exclusive.
I have a parameter that sets the channel. I can change to any other channel and attach the sensor and it opens no problem except for channel 0. It works *sometimes* if I build and run my program as an executable.
It looks like you have the Hub itself open, and are also trying to open the first Hub port, and the library is mistakenly stopping you - this is a bug in the library. I'll have a fix published in the next release.
Out of curiosity - what are you using the Hub channel for?
Just to confirm though - you are opening more than one Phidget channel in your program? From the log, it looks like you're opening the Hub channel - this would only be useful if you need to control the power to the hub ports: https://www.phidgets.com/?view=api&api=Hub&lang=CSharp
I'm using three sensors, one 1141 absolute sensor and two 1139 differential sensors and nothing else. The absolute sensor is always on channel 0 and the differential sensors are on channels 1 and 2. The differential sensors aren't having any trouble, just the absolute on channel 0.
Just to confirm though - you are opening more than one Phidget channel in your program? From the log, it looks like you're opening the Hub channel - this would only be useful if you need to control the power to the hub ports: https://www.phidgets.com/?view=api&api=Hub&lang=CSharp
-Patrick
Is there a reason I would want to control power to the hub ports for absolute and differential pressure sensors? I don't see the use case.
I don't think you would want to control power to the hub ports - the Hub channel is almost never used, so I'm surprised to see that you are opening it - and it sounds like maybe you don't mean to be opening it?
From your error message, I see: <VINT Hub Ch:0 -> HUB0000 S/N:636524>
The only way this should be able to happen if if you are doing something like: