Page 1 of 1

Reading anyone of the 4 thermocouples

Posted: Wed Jul 15, 2020 10:16 pm
by boreland
I see that this question has been asked before, but without any real answer being given.

Under the old API one could read the temperature of a given thermocouple like this

"therm.thermocouples[2].Temperature"

I see no comparable why to do this under the new API?

Re: Reading anyone of the 4 thermocouples

Posted: Thu Jul 16, 2020 7:34 am
by mparadis
This is the main difference between Phidget21 and Phidget22.

In Phidget22, you specify the channel index by setting the Channel property before calling open. You can create separate objects for each of the four channels and set their channel index before opening them all. You can also use an array of objects to make the code cleaner when using many objects of the same class. See this page for examples.