Search Results

by carnaby
Wed Apr 13, 2022 8:36 am
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

I got rid of all the hub open and attach / detach stuff but left this: public PhidgetManager() { // NOTE: Register attach and detach handlers for the manager before opening! _phidgetManager = new Manager(); _phidgetManager.Attach += Manager_Attach; _phidgetManager.Detach += Manager_Detach; try { _ph...
by carnaby
Tue Apr 12, 2022 4:32 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

Am I missing a call to new? I.e. should I have if VintHub is null

VintHub = new Hub;
by carnaby
Tue Apr 12, 2022 4:31 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

Oh wait, I do have something with the hub. I think I have this so I can catch when the user phycially attaches and detaches the hub. Is this not correct? private void Manager_Attach(object sender, Phidget22.Events.ManagerAttachEventArgs e) { Manager man = (Manager)sender; try { if (e.Channel.Channel...
by carnaby
Tue Apr 12, 2022 4:29 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

And also this code to define the voltage ratio sensor objects public VoltageRatioSensor(string sensorName, VoltageRatioSensorType sensorType, int hubPort) { _sensorName = sensorName; _sensorType = sensorType; _filterConstant = DEFAULT_FILTER_CONSTANT; _voltageRatioSensor = new VoltageRatioInput(); _...
by carnaby
Tue Apr 12, 2022 4:24 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

The only time I open anything is here: public void ManageSensors(PhidgetEvent phidgetEvent, int hubPort) { if(phidgetEvent == PhidgetEvent.attach) { switch(hubPort) { case Constants.ABSOLUTE_PRESSURE_SENSOR_PORT: AbsolutePressureSensor?.Open(); AbsolutePressureSensor.VoltageRatioSensor.Handler = Pro...
by carnaby
Tue Apr 12, 2022 10:11 am
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

Hi, 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 -Patri...
by carnaby
Tue Apr 12, 2022 10:10 am
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

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.
by carnaby
Mon Apr 11, 2022 6:18 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

Hi Patrick,

I'm using it for a 1141 absolute pressure sensor.

Thanks!
by carnaby
Mon Apr 11, 2022 12:08 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Re: Cannot use channel 0 anymore

So if I restart several times it sometimes works. That's all I have at the moment. Any ideas?
by carnaby
Fri Apr 08, 2022 6:26 pm
Forum: C#.NET
Topic: Cannot use channel 0 anymore
Replies: 13
Views: 23202

Cannot use channel 0 anymore

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 foll...