reading multiple TMP1100_0 Sensors on a HUB5000_0

C, C++, and Visual C++
Post Reply
rabarar
Phidgetsian
Posts: 5
Joined: Fri Jan 07, 2022 3:58 pm
Contact:

reading multiple TMP1100_0 Sensors on a HUB5000_0

Post by rabarar »

I've looked at the example code to read a temp sensor on the wifi hub - what isn't clear is how to read a specific sensor on a specified channel. For example, If I have port 4 and 5 each connected to a TMP1100_0 how can I read both and know which value is from which port?
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: reading multiple TMP1100_0 Sensors on a HUB5000_0

Post by mparadis »

You can set the HubPort property before opening the channel. And you can use the Channel property to determine whether you're using the thermocouple channel (channel 0) or the ambient temperature sensor on the TMP1100 itself (channel 1).

You can read more about these addressing properties here.
rabarar
Phidgetsian
Posts: 5
Joined: Fri Jan 07, 2022 3:58 pm
Contact:

Re: reading multiple TMP1100_0 Sensors on a HUB5000_0

Post by rabarar »

Thanks - that makes sense.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest