Reading anyone of the 4 thermocouples

Supporting Visual Studio on Windows
Fresh meat
Posts: 1
Joined: Wed Jul 15, 2020 10:12 pm

Reading anyone of the 4 thermocouples

Postby boreland » Wed Jul 15, 2020 10:16 pm

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


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

User avatar
Site Admin
Posts: 733
Joined: Fri Oct 28, 2011 12:17 pm

Re: Reading anyone of the 4 thermocouples

Postby mparadis » Thu Jul 16, 2020 7:34 am

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.

Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 12 guests