Reading anyone of the 4 thermocouples

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

Reading anyone of the 4 thermocouples

Post 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?
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Reading anyone of the 4 thermocouples

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest